Method | Description | |
---|---|---|
createFromApi ( |
Create a new Package decorated with the Api Package. | |
getDescription ( ) | ||
getDownloads ( ) | ||
getFavers ( ) | ||
getLatestStableVersion ( ) | ||
getLatestStableVersionNormalized ( ) : null | ||
getLatestUnstableVersion ( ) | ||
getLatestUnstableVersionNormalized ( ) | ||
getLicense ( ) | ||
getMaintainers ( ) | ||
getName ( ) | original object's property | |
getOriginalObject ( ) | ||
getPackageDownloads ( string $type ) : string | Take the Type of the Downloads (total, monthly or daily). | |
getRepository ( ) | ||
getTime ( ) | ||
getType ( ) | ||
getVersions ( ) | ||
hasStableVersion ( ) | ||
hasUnstableVersion ( ) | ||
parseStability ( string $version ) : string | Returns the stability of a version. |
Method | Description | |
---|---|---|
__construct ( |
||
calculateLatestVersions ( ) : |
Set the latest Stable and the latest Unstable version from a Package. | |
getBranchAliases ( Packagist\Api\Result\Package\Version $version ) : null | array | Get all the branch aliases. | |
setLatestStableVersion ( $version ) | ||
setLatestStableVersionNormalized ( $latestStableVersionNormalized ) | ||
setLatestUnstableVersion ( $version ) | ||
setLatestUnstableVersionNormalized ( $latestUnstableVersionNormalized ) | ||
setLicense ( $license ) | ||
setOriginalObject ( |
public static createFromApi ( |
||
$apiPackage | ||
return |
public getLatestStableVersionNormalized ( ) : null | ||
return | null |
public getPackageDownloads ( string $type ) : string | ||
$type | string | |
return | string |
public static parseStability ( string $version ) : string | ||
$version | string | |
return | string |