PHP Class Platformsh\Cli\Command\Project\ProjectCreateCommand

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

Protected Properties

Property Type Description
$form Platformsh\ConsoleForm\Form

Public Methods

Method Description
isEnabled ( )

Protected Methods

Method Description
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
getAvailablePlans ( ) : string[] Return a list of plans.
getEstimate ( string $plan, integer $storage, integer $environments ) : array | false Get a cost estimate for the new project.
getFields ( ) : Platformsh\ConsoleForm\Field\Field[] Returns a list of ConsoleForm form fields for this command.

Method Details

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

getAvailablePlans() protected method

The default list (from the API client) can be overridden by user config.
protected getAvailablePlans ( ) : string[]
return string[]

getEstimate() protected method

Get a cost estimate for the new project.
protected getEstimate ( string $plan, integer $storage, integer $environments ) : array | false
$plan string
$storage integer
$environments integer
return array | false

getFields() protected method

Returns a list of ConsoleForm form fields for this command.
protected getFields ( ) : Platformsh\ConsoleForm\Field\Field[]
return Platformsh\ConsoleForm\Field\Field[]

isEnabled() public method

public isEnabled ( )

Property Details

$form protected property

protected Form,Platformsh\ConsoleForm $form
return Platformsh\ConsoleForm\Form