Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Adds static create constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 21, 2016
1 parent 7f18cc0 commit 93bc912
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Vault.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ public function __construct(string $id, string $token, string $environment)
$this->token = $token;
$this->environment = $environment;
}

/**
* Create a new Vault instance.
*
* @param string $id
* @param string $token
* @param string $environment
*
* @return $this
*/
public static function create(string $id, string $token, string $environment)
{
return new static($id, $token, $environment);
}
}

0 comments on commit 93bc912

Please sign in to comment.