Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * 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);
 }