class StubsContainer (View source)

Methods

getConstants()

No description

getConstant(string $constantId, string|null $sourceFilePath = null, true $fromReflection = false, true $shouldSuitCurrentPhpVersion = true)

No description

addConstant($constant)

No description

getFunctions()

No description

getFunction(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

addFunction(PHPFunction $function)

No description

getClasses()

No description

PHPClass|null
getClass(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

getClassByHash(string $hash)

No description

PHPEnum|null
getEnum(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

getEnumByHash(string $hash)

No description

getCoreClasses($shouldSuitCurrentPhpVersion = true)

No description

addClass(PHPClass $class)

No description

getInterface(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

getInterfaceByHash(string $hash)

No description

getInterfaces()

No description

getEnums()

No description

getCoreInterfaces($shouldSuitCurrentPhpVersion = true)

No description

getCoreEnums($shouldSuitCurrentPhpVersion = true)

No description

addInterface(PHPInterface $interface)

No description

addEnum(PHPEnum $enum)

No description

Details

PHPConstant[] getConstants()

No description

Return Value

PHPConstant[]

PHPConstant|null getConstant(string $constantId, string|null $sourceFilePath = null, true $fromReflection = false, true $shouldSuitCurrentPhpVersion = true)

No description

Parameters

string $constantId
string|null $sourceFilePath
true $fromReflection
true $shouldSuitCurrentPhpVersion

Return Value

PHPConstant|null

Exceptions

RuntimeException

addConstant($constant)

No description

Parameters

$constant

PHPFunction[] getFunctions()

No description

Return Value

PHPFunction[]

PHPFunction|null getFunction(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

Parameters

string $id
string|null $sourceFilePath
bool $shouldSuitCurrentPhpVersion
false $fromReflection

Return Value

PHPFunction|null

Exceptions

RuntimeException

addFunction(PHPFunction $function)

No description

Parameters

PHPFunction $function

PHPClass[] getClasses()

No description

Return Value

PHPClass[]

PHPClass|null getClass(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

Parameters

string $id
string|null $sourceFilePath
bool $shouldSuitCurrentPhpVersion
false $fromReflection

Return Value

PHPClass|null

Exceptions

RuntimeException

getClassByHash(string $hash)

No description

Parameters

string $hash

PHPEnum|null getEnum(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

Parameters

string $id
string|null $sourceFilePath
bool $shouldSuitCurrentPhpVersion
false $fromReflection

Return Value

PHPEnum|null

Exceptions

RuntimeException

getEnumByHash(string $hash)

No description

Parameters

string $hash

PHPClass[] getCoreClasses($shouldSuitCurrentPhpVersion = true)

No description

Parameters

$shouldSuitCurrentPhpVersion

Return Value

PHPClass[]

addClass(PHPClass $class)

No description

Parameters

PHPClass $class

PHPInterface|null getInterface(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)

No description

Parameters

string $id
string|null $sourceFilePath
bool $shouldSuitCurrentPhpVersion
false $fromReflection

Return Value

PHPInterface|null

Exceptions

RuntimeException

getInterfaceByHash(string $hash)

No description

Parameters

string $hash

PHPInterface[] getInterfaces()

No description

Return Value

PHPInterface[]

PHPEnum[] getEnums()

No description

Return Value

PHPEnum[]

PHPInterface[] getCoreInterfaces($shouldSuitCurrentPhpVersion = true)

No description

Parameters

$shouldSuitCurrentPhpVersion

Return Value

PHPInterface[]

getCoreEnums($shouldSuitCurrentPhpVersion = true)

No description

Parameters

$shouldSuitCurrentPhpVersion

addInterface(PHPInterface $interface)

No description

Parameters

PHPInterface $interface

addEnum(PHPEnum $enum)

No description

Parameters

PHPEnum $enum