-
-
Notifications
You must be signed in to change notification settings - Fork 0
ProjectCapabilities
Captures which documentation, testing, and wiki surfaces are available for the current repository.
- Full name:
\FastForward\DevTools\Project\ProjectCapabilities - This class is marked as final and can't be subclassed
- This class is a Final class
Creates a repository capability snapshot for reporting and documentation commands.
public __construct(list<string> $apiDirectories, string|null $defaultPackageName, bool $hasGuideDirectory, bool $hasTestsPath, bool $hasWikiTarget, bool $hasPhpSourceFiles): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$apiDirectories |
list | project-relative directories that contain autoloaded PHP API source |
$defaultPackageName |
string|null | the default package name derived from Composer namespaces when available |
$hasGuideDirectory |
bool | whether the configured guide directory exists |
$hasTestsPath |
bool | whether the configured tests path exists |
$hasWikiTarget |
bool | whether the configured wiki target exists |
$hasPhpSourceFiles |
bool | whether the repository exposes autoloaded PHP source that can be tested |
Returns the project-relative directories that expose autoloaded PHP API source.
public getApiDirectories(): arrayReturns the default API package name when one can be derived from Composer namespaces.
public getDefaultPackageName(): ?stringDetects whether the configured guide directory exists.
public hasGuideDirectory(): boolDetects whether the configured tests directory exists.
public hasTestsPath(): boolDetects whether the configured wiki target exists.
public hasWikiTarget(): boolDetects whether the repository exposes autoloaded PHP source that can be tested.
public hasPhpSourceFiles(): boolDetects whether the repository exposes autoloaded PHP API source.
public canGenerateApiDocumentation(): boolDetects whether the repository can generate guides, API documentation, or both.
public canGenerateDocs(): boolDetects whether metrics generation can analyse repository history and package metadata.
public canGenerateMetrics(): boolDetects whether wiki generation can render API documentation into the configured wiki target.
public canGenerateWiki(): boolDetects whether the repository has enough PHP surface to justify running tests.
public canRunTests(): bool