Documentation

InvalidArgumentException extends InvalidArgumentException
in package
implements ExceptionInterface

Exception for invalid arguments provided to the instantiator

Interfaces, Classes, Traits and Enums

ExceptionInterface
Base exception marker interface for the instantiator component

Table of Contents

fromAbstractClass()  : self
fromEnum()  : self
fromNonExistingClass()  : self

Methods

fromAbstractClass()

public static fromAbstractClass(ReflectionClass $reflectionClass) : self
Parameters
$reflectionClass : ReflectionClass
Tags
phpstan-param

ReflectionClass<T> $reflectionClass

template

T of object

Return values
self

fromEnum()

public static fromEnum(string $className) : self
Parameters
$className : string
Return values
self

fromNonExistingClass()

public static fromNonExistingClass(string $className) : self
Parameters
$className : string
Return values
self

Search results