-
-
Notifications
You must be signed in to change notification settings - Fork 0
FundingProfile
github-actions edited this page Apr 26, 2026
·
1 revision
Carries normalized funding metadata across Composer and GitHub formats.
- Full name:
\FastForward\DevTools\Funding\FundingProfile - This class is marked as final and can't be subclassed
- This class is a Final class
Creates a new funding profile.
public __construct(array<int,string> $githubSponsors = [], array<int,string> $customUrls = [], array<string,mixed> $unsupportedYamlEntries = [], array<int,array<string,mixed>> $unsupportedComposerEntries = []): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$githubSponsors |
array<int,string> | the normalized GitHub Sponsors handles |
$customUrls |
array<int,string> | the normalized custom funding URLs |
$unsupportedYamlEntries |
array<string,mixed> | the YAML entries preserved without synchronization |
$unsupportedComposerEntries |
array<int,array<string,mixed>> | the Composer entries preserved without synchronization |
Returns the normalized GitHub Sponsors handles.
public getGithubSponsors(): array<int,string>Return Value:
the GitHub Sponsors handles
Returns the normalized custom funding URLs.
public getCustomUrls(): array<int,string>Return Value:
the custom funding URLs
Returns the unsupported YAML entries that MUST be preserved.
public getUnsupportedYamlEntries(): array<string,mixed>Return Value:
the YAML entries kept without transformation
Returns the unsupported Composer funding entries that MUST be preserved.
public getUnsupportedComposerEntries(): array<int,array<string,mixed>>Return Value:
the Composer funding entries kept without transformation
Reports whether the profile contains any YAML-serializable content.
public hasYamlContent(): boolReturn Value:
true when the YAML file SHOULD exist