getCommand() public method

Get the command which was sent to the server.
public getCommand ( ) : string
return string
コード例 #1
0
 /**
  * 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));
 }
 /**
  * Invoked immediately following a command being sent.
  *
  * @param \Swift_Events_CommandEvent $evt
  */
 public function commandSent(\Swift_Events_CommandEvent $evt)
 {
     $level = $this->levels['commandSent'];
     $command = $evt->getCommand();
     $this->log($level, sprintf(">> %s", $command));
 }
コード例 #3
0
 /**
  * Invoked immediately following a command being sent.
  *
  * @param Swift_Events_CommandEvent $evt
  */
 public function commandSent(Swift_Events_CommandEvent $evt)
 {
     $command = $evt->getCommand();
     $this->_out += strlen($command);
 }
コード例 #4
0
ファイル: Listener.php プロジェクト: cawaphp/email
 /**
  * Invoked immediately following a command being sent.
  *
  * @param \Swift_Events_CommandEvent $evt
  */
 public function commandSent(\Swift_Events_CommandEvent $evt)
 {
     $this->log[] = '> ' . $evt->getCommand();
 }