You are here

public static function InvalidArgumentException::fromAbstractClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php \Doctrine\Instantiator\Exception\InvalidArgumentException::fromAbstractClass()

Parameters

ReflectionClass $reflectionClass:

Return value

self

2 calls to InvalidArgumentException::fromAbstractClass()
Instantiator::getReflectionClass in vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php
InvalidArgumentExceptionTest::testFromAbstractClass in vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/Exception/InvalidArgumentExceptionTest.php

File

vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/InvalidArgumentException.php, line 55

Class

InvalidArgumentException
Exception for invalid arguments provided to the instantiator

Namespace

Doctrine\Instantiator\Exception

Code

public static function fromAbstractClass(ReflectionClass $reflectionClass) {
  return new self(sprintf('The provided class "%s" is abstract, and can not be instantiated', $reflectionClass
    ->getName()));
}