/** * Check if the queue does contain a given filter * * @param TemplateFilterInterface $filter * @return bool * @throws \InvalidArgumentException if the object doesn't implement TemplateFilterInterface */ public function contains(ObjectHandlable $filter) { if (!$filter instanceof TemplateFilterInterface) { throw new \InvalidArgumentException('Filter needs to implement TemplateFilterInterface'); } return parent::contains($filter); }
/** * Check if the queue does contain a given object * * @param CommandInterface $object * @return bool * @throws \InvalidArgumentException if the object implement CommandInterface */ public function contains(ObjectHandlable $command) { if (!$command instanceof CommandInterface) { throw new \InvalidArgumentException('Command needs to implement CommandInterface'); } return parent::contains($command); }
/** * Check if the queue does contain a given bootstrapper * * @param BootstrapperInterface $boostrapper * @return bool * @throws \InvalidArgumentException if the object doesn't implement BootstrapperInterface */ public function contains(ObjectHandlable $bootstrapper) { if (!$bootstrapper instanceof BootstrapperInterface) { throw new \InvalidArgumentException('Filter needs to implement BootstrapperInterface'); } return parent::contains($bootstrapper); }