invalidClass() public static method

public static invalidClass ( string $spec ) : static
$spec string
return static
コード例 #1
0
ファイル: ChainedResponder.php プロジェクト: equip/framework
 /**
  * @inheritDoc
  *
  * @throws ResponderException
  *  If $classes does not implement the correct interface.
  */
 protected function assertValid(array $classes)
 {
     parent::assertValid($classes);
     foreach ($classes as $responder) {
         if (!is_subclass_of($responder, ResponderInterface::class)) {
             throw ResponderException::invalidClass($responder);
         }
     }
 }