PHP Class PUGX\Badge\Model\UseCase\CreateGitattributesBadge

Inheritance: extends BaseCreatePackagistImage
Show file Open project: pugx/badge-poser

Protected Properties

Property Type Description
$client Guzzle\Http\Client
$text

Public Methods

Method Description
__construct ( PUGX\Badge\Model\PackageRepositoryInterface $packageRepository, Guzzle\Http\Client $client )
createGitattributesBadge ( string $repository, string $format = 'svg' ) : PUGX\Badge\Model\Badge

Protected Methods

Method Description
prepareText ( $package, $context = null )

Method Details

__construct() public method

public __construct ( PUGX\Badge\Model\PackageRepositoryInterface $packageRepository, Guzzle\Http\Client $client )
$packageRepository PUGX\Badge\Model\PackageRepositoryInterface
$client Guzzle\Http\Client

createGitattributesBadge() public method

public createGitattributesBadge ( string $repository, string $format = 'svg' ) : PUGX\Badge\Model\Badge
$repository string
$format string
return PUGX\Badge\Model\Badge

prepareText() protected method

protected prepareText ( $package, $context = null )

Property Details

$client protected property

protected Client,Guzzle\Http $client
return Guzzle\Http\Client

$text protected property

protected $text