PHP Class Pantheon\Terminus\Collections\Environments

Inheritance: extends SiteOwnedCollection
Exibir arquivo Open project: pantheon-systems/terminus Class Usage Examples

Protected Properties

Property Type Description
$collected_class string
$url string

Public Methods

Method Description
create ( string $to_env_id, Environment $from_env ) : Workflow Creates a multidev environment
ids ( ) : string[] List Environment IDs, with Dev/Test/Live first
multidev ( ) : Environment[] Returns a list of all multidev environments on the collection-owning Site

Method Details

create() public method

Creates a multidev environment
public create ( string $to_env_id, Environment $from_env ) : Workflow
$to_env_id string Name of new the environment
$from_env Pantheon\Terminus\Models\Environment Environment to clone from
return Workflow

ids() public method

List Environment IDs, with Dev/Test/Live first
public ids ( ) : string[]
return string[] $ids

multidev() public method

Returns a list of all multidev environments on the collection-owning Site
public multidev ( ) : Environment[]
return Pantheon\Terminus\Models\Environment[]

Property Details

$collected_class protected_oe property

protected string $collected_class
return string

$url protected_oe property

protected string $url
return string