/** * 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; }
public function __construct($name = null) { parent::__construct($name); $this->setCode(array($this, 'myFooFunction')); }