Ejemplo n.º 1
0
 /**
  * Check Object acceptance
  *
  * Check if given Controller is acceptable in Controllers Chain
  * To be valid, the Controller must implement Next\Controller\Controller Interface
  *
  * @param Next\Components\Object $object
  *   An Object object
  *
  *   The checking for Next\Controller\Controller Interface will be inside
  *   the method.
  *
  * @return boolean
  *   TRUE if given Object is acceptable by Controllers Collection and FALSE otherwise
  *
  * @throws Next\Controller\ControllerException
  *   Given application is not acceptable in the Controller Chain
  */
 public function accept(Object $object)
 {
     if (!$object instanceof Controller) {
         throw ControllerException::invalidController($object);
     }
     return TRUE;
 }