PHP Class Pantheon\Terminus\Commands\ArtCommand

Inheritance: extends TerminusCommand
Afficher le fichier Open project: pantheon-systems/terminus

Protected Properties

Свойство Type Description
$filename Name of the file

Méthodes publiques

Méthode Description
art ( string $name = '' ) Displays Pantheon ASCII artwork
interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) If the user does not specify the $name parameter, then we will prompt for it here.

Méthodes protégées

Méthode Description
availableArt ( ) : array Return available art
formatFilename ( $name ) : ArtCommand Set the art filename.
getFilename ( ) : string
retrieveArt ( $name ) : string Retrieve the contents of an art file.
setFilename ( string $filename )

Private Methods

Méthode Description
randomArtName ( ) : string Feeling lucky? Get a random artwork.

Method Details

art() public méthode

Displays Pantheon ASCII artwork
public art ( string $name = '' )
$name string Name of the artwork to select

availableArt() protected méthode

Return available art
protected availableArt ( ) : array
Résultat array

formatFilename() protected méthode

Set the art filename.
protected formatFilename ( $name ) : ArtCommand
$name
Résultat ArtCommand

getFilename() protected méthode

protected getFilename ( ) : string
Résultat string

interact() public méthode

If the user does not specify the $name parameter, then we will prompt for it here.
public interact ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

retrieveArt() protected méthode

Retrieve the contents of an art file.
protected retrieveArt ( $name ) : string
$name
Résultat string

setFilename() protected méthode

protected setFilename ( string $filename )
$filename string

Property Details

$filename protected_oe property

Name of the file
protected $filename