PHP Class Pantheon\Terminus\Commands\ArtCommand

Inheritance: extends TerminusCommand
Datei anzeigen Open project: pantheon-systems/terminus

Protected Properties

Property Type Description
$filename Name of the file

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
randomArtName ( ) : string Feeling lucky? Get a random artwork.

Method Details

art() public method

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

availableArt() protected method

Return available art
protected availableArt ( ) : array
return array

formatFilename() protected method

Set the art filename.
protected formatFilename ( $name ) : ArtCommand
$name
return ArtCommand

getFilename() protected method

protected getFilename ( ) : string
return string

interact() public method

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 method

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

setFilename() protected method

protected setFilename ( string $filename )
$filename string

Property Details

$filename protected_oe property

Name of the file
protected $filename