FundingProfileMerger
Class
Read only:
Yes
Final:
Yes
Merges normalized funding profiles into a deterministic synchronized view.
Methods
merge()
: FundingProfile
Merges funding metadata from Composer and GitHub sources.
sortedUnique()
: array<int, string>
Returns a sorted unique list of scalar values.
Merges funding metadata from Composer and GitHub sources.
public
merge(FundingProfile
$composerProfile, FundingProfile
$yamlProfile) : FundingProfile
Parameters
Description
the funding metadata sourced from composer.json
Description
the funding metadata sourced from .github/FUNDING.yml
Return values
Description
the merged synchronized funding metadata
Returns a sorted unique list of scalar values.
private
sortedUnique(
array<int, string>
$values) : array<int, string>
Parameters
$values
:
array<int, string>
Description
the values to normalize
Return values
array<int, string>
Description
the sorted unique values