Get last action name (push/pull) via PHP

Hello everyone
How can I get last action name (pull or push) via PHP?