PHP Class Platformsh\Cli\Command\Environment\EnvironmentListCommand

Inheritance: extends Platformsh\Cli\Command\CommandBase
Show file Open project: commerceguys/platform-cli

Protected Properties

Property Type Description
$children
$currentEnvironment Platformsh\Client\Model\Environment
$mapping

Protected Methods

Method Description
buildEnvironmentRows ( array $tree, boolean $indent = true, boolean $indicateCurrent = true, integer $indentAmount ) : array Recursively build rows of the environment table.
buildEnvironmentTree ( array $environments, string $parent = null ) : array Build a tree out of a list of environments.
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
formatEnvironmentStatus ( string $status ) : string

Method Details

buildEnvironmentRows() protected method

Recursively build rows of the environment table.
protected buildEnvironmentRows ( array $tree, boolean $indent = true, boolean $indicateCurrent = true, integer $indentAmount ) : array
$tree array
$indent boolean
$indicateCurrent boolean
$indentAmount integer
return array

buildEnvironmentTree() protected method

Build a tree out of a list of environments.
protected buildEnvironmentTree ( array $environments, string $parent = null ) : array
$environments array
$parent string
return array

configure() protected method

protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

formatEnvironmentStatus() protected method

protected formatEnvironmentStatus ( string $status ) : string
$status string
return string

Property Details

$children protected property

protected $children

$currentEnvironment protected property

protected Environment,Platformsh\Client\Model $currentEnvironment
return Platformsh\Client\Model\Environment

$mapping protected property

protected $mapping