FundingProfile
Carries normalized funding metadata across Composer and GitHub formats.
Properties
Methods
Creates a new funding profile.
Returns the normalized custom funding URLs.
Returns the normalized GitHub Sponsors handles.
Returns the unsupported Composer funding entries that MUST be preserved.
Returns the unsupported YAML entries that MUST be preserved.
Reports whether the profile contains any YAML-serializable content.
private
array<string|int, mixed>
$customUrls
=
[]
private
array<string|int, mixed>
$githubSponsors
=
[]
private
array<string|int, mixed>
$unsupportedComposerEntries
=
[]
private
array<string|int, mixed>
$unsupportedYamlEntries
=
[]
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
$githubSponsors
:
array<int, string>
=
[]
Description
the normalized GitHub Sponsors handles
$customUrls
:
array<int, string>
=
[]
Description
the normalized custom funding URLs
$unsupportedYamlEntries
:
array<string, mixed>
=
[]
Description
the YAML entries preserved without synchronization
$unsupportedComposerEntries
:
array<int, array<string, mixed>>
=
[]
Description
the Composer entries preserved without synchronization
Returns the normalized custom funding URLs.
public
getCustomUrls() : array<int, string>
Return values
Description
the custom funding URLs
Returns the normalized GitHub Sponsors handles.
public
getGithubSponsors() : array<int, string>
Return values
Description
the GitHub Sponsors handles
Returns the unsupported Composer funding entries that MUST be preserved.
public
getUnsupportedComposerEntries() : array<int, array<string, mixed>>
Return values
Description
the Composer funding entries kept without transformation
Returns the unsupported YAML entries that MUST be preserved.
public
getUnsupportedYamlEntries() : array<string, mixed>
Return values
Description
the YAML entries kept without transformation
Reports whether the profile contains any YAML-serializable content.
public
hasYamlContent() : bool
Return values
Description
true when the YAML file SHOULD exist