Skip to content

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

Methods

__construct

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 = []): mixed

Parameters:

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

getGithubSponsors

Returns the normalized GitHub Sponsors handles.

public getGithubSponsors(): array<int,string>

Return Value:

the GitHub Sponsors handles


getCustomUrls

Returns the normalized custom funding URLs.

public getCustomUrls(): array<int,string>

Return Value:

the custom funding URLs


getUnsupportedYamlEntries

Returns the unsupported YAML entries that MUST be preserved.

public getUnsupportedYamlEntries(): array<string,mixed>

Return Value:

the YAML entries kept without transformation


getUnsupportedComposerEntries

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


hasYamlContent

Reports whether the profile contains any YAML-serializable content.

public hasYamlContent(): bool

Return Value:

true when the YAML file SHOULD exist


Clone this wiki locally