Swift_Events_CommandEvent::getCommand PHP Method

getCommand() public method

Get the command which was sent to the server.
public getCommand ( ) : string
return string
    public function getCommand()
    {
        return $this->_command;
    }

Usage Example

 /**
  * Invoked immediately following a command being sent.
  *
  * @param Swift_Events_CommandEvent $evt
  */
 public function commandSent(Swift_Events_CommandEvent $evt)
 {
     $command = $evt->getCommand();
     $this->_logger->add(sprintf('>> %s', $command));
 }
All Usage Examples Of Swift_Events_CommandEvent::getCommand