コード例 #1
0
ファイル: DaemonEvent.php プロジェクト: Grosloup/DaemonBundle
 /**
  * Gets last exception class name
  *
  * @return string|null
  */
 public function getCommandLastExceptionClassName()
 {
     $exception = $this->command->getLastException();
     if (!is_null($exception)) {
         return get_class($exception);
     }
     return null;
 }
コード例 #2
0
 public function __construct($name = null)
 {
     parent::__construct($name);
     $this->setCode(array($this, 'myFooFunction'));
 }