| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | abstract class Credentials implements CredentialsInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The credentials identifier. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $identifier; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The credentials shared-secret. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $secret; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Creaate the new Crendentials class instance. |
||
| 23 | * |
||
| 24 | * @param string $identifier |
||
| 25 | * @param string $secret |
||
| 26 | */ |
||
| 27 | 59 | public function __construct($identifier, $secret) |
|
| 28 | { |
||
| 29 | 59 | $this->identifier = $identifier; |
|
| 30 | 59 | $this->secret = $secret; |
|
| 31 | 59 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 9 | public function getIdentifier() |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 15 | public function getSecret() |
|
| 47 | } |
||
| 48 | } |
||
| 49 |