/** * Get the priority of a command handler * * @param CommandHandlerInterface $handler A command handler * @return integer The command priority */ public function getHandlerPriority(CommandHandlerInterface $handler) { return $this->__queue->getPriority($handler); }
/** * Get the priority of a command * * @param CommandInterface $object * @return integer The command priority * @throws \InvalidArgumentException if the object doesn't implement CommandInterface */ public function getPriority(ObjectHandlable $command) { if (!$command instanceof CommandInterface) { throw new \InvalidArgumentException('Command needs to implement CommandInterface'); } return parent::getPriority($command); }