StubsContainer
class StubsContainer (View source)
Methods
getConstants()
No description
PHPConstant|null
getConstant(string $constantId, string|null $sourceFilePath = null, true $fromReflection = false, true $shouldSuitCurrentPhpVersion = true)
No description
addConstant($constant)
No description
getFunctions()
No description
PHPFunction|null
getFunction(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)
No description
PHPClass[]
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
PHPClass[]
getCoreClasses($shouldSuitCurrentPhpVersion = true)
No description
PHPInterface|null
getInterface(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)
No description
getInterfaceByHash(string $hash)
No description
getInterfaces()
No description
getCoreInterfaces($shouldSuitCurrentPhpVersion = true)
No description
getCoreEnums($shouldSuitCurrentPhpVersion = true)
No description
Details
PHPConstant[]
getConstants()
No description
PHPConstant|null
getConstant(string $constantId, string|null $sourceFilePath = null, true $fromReflection = false, true $shouldSuitCurrentPhpVersion = true)
No description
addConstant($constant)
No description
PHPFunction[]
getFunctions()
No description
PHPFunction|null
getFunction(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)
No description
addFunction(PHPFunction $function)
No description
PHPClass[]
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
PHPClass[]
getCoreClasses($shouldSuitCurrentPhpVersion = true)
No description
addClass(PHPClass $class)
No description
PHPInterface|null
getInterface(string $id, string|null $sourceFilePath = null, bool $shouldSuitCurrentPhpVersion = true, false $fromReflection = false)
No description
getInterfaceByHash(string $hash)
No description
PHPInterface[]
getInterfaces()
No description
PHPEnum[]
getEnums()
No description
PHPInterface[]
getCoreInterfaces($shouldSuitCurrentPhpVersion = true)
No description
getCoreEnums($shouldSuitCurrentPhpVersion = true)
No description
addInterface(PHPInterface $interface)
No description
addEnum(PHPEnum $enum)
No description