PHP Interface Pyrech\ComposerChangelogs\OperationHandler\OperationHandler

显示文件 Open project: pyrech/composer-changelogs

Public Methods

Method Description
extractSourceUrl ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : string Extract the source url for the package related to the given operation.
getOutput ( Composer\DependencyResolver\Operation\OperationInterface $operation, Pyrech\ComposerChangelogs\UrlGenerator\UrlGenerator $urlGenerator = null ) : array Generate output for the given operation, with some links generated by the url generator.
supports ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : boolean Return whether the handler supports the given operation.

Method Details

extractSourceUrl() public method

Extract the source url for the package related to the given operation.
public extractSourceUrl ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : string
$operation Composer\DependencyResolver\Operation\OperationInterface
return string

getOutput() public method

Generate output for the given operation, with some links generated by the url generator.
public getOutput ( Composer\DependencyResolver\Operation\OperationInterface $operation, Pyrech\ComposerChangelogs\UrlGenerator\UrlGenerator $urlGenerator = null ) : array
$operation Composer\DependencyResolver\Operation\OperationInterface
$urlGenerator Pyrech\ComposerChangelogs\UrlGenerator\UrlGenerator
return array

supports() public method

Return whether the handler supports the given operation.
public supports ( Composer\DependencyResolver\Operation\OperationInterface $operation ) : boolean
$operation Composer\DependencyResolver\Operation\OperationInterface
return boolean