PHP Класс LEtudiant\Composer\Data\Package\SharedPackageDataManager

Автор: Sylvain Lorinet ([email protected])
Наследование: implements LEtudiant\Composer\Data\Package\PackageDataManagerInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$composer Composer\Composer
$packagesData array
$vendorDir string

Открытые методы

Метод Описание
__construct ( Composer\Composer $composer )
addPackageUsage ( Composer\Package\PackageInterface $package ) Add a row in the "packages.json" file, with the project name for the "package/version" key
getPackageUsage ( Composer\Package\PackageInterface $package ) : array Return usage of the current package
removePackageUsage ( Composer\Package\PackageInterface $package ) Remove the row in the "packages.json" file
setPackageInstallationSource ( Composer\Package\PackageInterface $package )
setVendorDir ( string $vendorDir )

Защищенные методы

Метод Описание
getPackageDataKey ( Composer\Package\PackageInterface $package, string $key, mixed $defaultValue = null ) : mixed
getPackageInstallationSource ( Composer\Package\PackageInterface $package ) : string | null
initializePackageData ( ) Initialize the package data array if not set
updatePackageUsageFile ( Composer\Package\PackageInterface $package, array $packageData )

Описание методов

__construct() публичный Метод

public __construct ( Composer\Composer $composer )
$composer Composer\Composer

addPackageUsage() публичный Метод

Add a row in the "packages.json" file, with the project name for the "package/version" key
public addPackageUsage ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

getPackageDataKey() защищенный Метод

protected getPackageDataKey ( Composer\Package\PackageInterface $package, string $key, mixed $defaultValue = null ) : mixed
$package Composer\Package\PackageInterface
$key string
$defaultValue mixed
Результат mixed

getPackageInstallationSource() защищенный Метод

protected getPackageInstallationSource ( Composer\Package\PackageInterface $package ) : string | null
$package Composer\Package\PackageInterface
Результат string | null

getPackageUsage() публичный Метод

Return usage of the current package
public getPackageUsage ( Composer\Package\PackageInterface $package ) : array
$package Composer\Package\PackageInterface
Результат array

initializePackageData() защищенный Метод

Initialize the package data array if not set
protected initializePackageData ( )

removePackageUsage() публичный Метод

Remove the row in the "packages.json" file
public removePackageUsage ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

setPackageInstallationSource() публичный Метод

public setPackageInstallationSource ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

setVendorDir() публичный Метод

public setVendorDir ( string $vendorDir )
$vendorDir string

updatePackageUsageFile() защищенный Метод

protected updatePackageUsageFile ( Composer\Package\PackageInterface $package, array $packageData )
$package Composer\Package\PackageInterface
$packageData array

Описание свойств

$composer защищенное свойство

protected Composer,Composer $composer
Результат Composer\Composer

$packagesData защищенное свойство

protected array $packagesData
Результат array

$vendorDir защищенное свойство

protected string $vendorDir
Результат string