This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds cards method to access the vault
- Loading branch information
Craig Paul
committed
Oct 21, 2016
1 parent
61145f4
commit 3708147
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace CraigPaul\Moneris; | ||
|
||
/** | ||
* CraigPaul\Moneris\Vault | ||
* | ||
* @property-read string $environment | ||
* @property-read string $id | ||
* @property-read string $token | ||
*/ | ||
class Vault | ||
{ | ||
use Gettable; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $token; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $environment; | ||
|
||
/** | ||
* Create a new Vault instance. | ||
* | ||
* @param string $id | ||
* @param string $token | ||
* @param string $environment | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(string $id, string $token, string $environment) | ||
{ | ||
$this->id = $id; | ||
$this->token = $token; | ||
$this->environment = $environment; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters