class AllStubsDataProvider implements StubsDataProvider (View source)

Methods

__construct(string|null $stubsRootPath = null)

No description

array
getAllStubFiles()

Get all PHP stub files from the stubs directory.

string
getStubFileContent(string $path)

Get the content of a stub file.

string
getStubsRootPath()

Get the stubs root path.

Details

__construct(string|null $stubsRootPath = null)

No description

Parameters

string|null $stubsRootPath

array getAllStubFiles()

Get all PHP stub files from the stubs directory.

Excludes vendor, tests, and other non-stub directories.

Return Value

array

string getStubFileContent(string $path)

Get the content of a stub file.

Parameters

string $path

Return Value

string

Exceptions

RuntimeException

string getStubsRootPath()

Get the stubs root path.

Return Value

string