Pantheon\Terminus\Collections\TerminusCollection::__construct PHP Method

__construct() public method

Instantiates the collection, sets param members as properties
public __construct ( array $options = [] )
$options array Options with which to configure this collection
    public function __construct(array $options = [])
    {
    }

Usage Example

 /**
  * Instantiates the collection, sets param members as properties
  *
  * @param array $options Options with which to configure this collection
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     if (isset($options['environment'])) {
         $this->owner = $this->environment = $options['environment'];
     } elseif (isset($options['organization'])) {
         $this->owner = $this->organization = $options['organization'];
     } elseif (isset($options['site'])) {
         $this->owner = $this->site = $options['site'];
     } elseif (isset($options['user'])) {
         $this->owner = $this->user = $options['user'];
     }
 }
All Usage Examples Of Pantheon\Terminus\Collections\TerminusCollection::__construct