public function __construct(EnvironmentVariable $environmentVariable) { $this->credentials = $environmentVariable->getCredentials(); $this->cloud = $environmentVariable->getCloud(); }
public static function fromEnvironmentVariable(EnvironmentVariable $environmentVariable) { return new Configuration($environmentVariable->getCloud(), $environmentVariable->getCredentials()); }