public function __construct(\ReflectionClass $interface) { if (!$interface->isInterface() || $interface->isTrait()) { throw new \InvalidArgumentException('Only interfaces supported'); } parent::__construct($interface); }