public function hasCommand($notificationName) { if (!self::$shouldSuppressEcho) { echo $notificationName . PHP_EOL; } return parent::hasCommand($notificationName); }
/** * Has Command * * Check if a <b>Command</b> is registered for a given <b>Notification</b> * * @param string $notificationName Name of the <b>INotification</b> to check for. * @return bool Whether a <b>Command</b> is currently registered for the given <var>notificationName</var>. */ public function hasCommand($notificationName) { return isset($this->controller) ? $this->controller->hasCommand($notificationName) : false; }