| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | trait ClientHasSecretTrait |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $secret |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | public function validateSecret(string $secret): bool |
||
| 18 | { |
||
| 19 | return $this->secret === $secret; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $secret |
||
| 24 | */ |
||
| 25 | 20 | public function setSecret(string $secret) |
|
| 26 | { |
||
| 27 | 20 | $this->secret = $secret; |
|
| 28 | 20 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 5 | public function getSecret(): string |
|
| 36 | } |
||
| 37 | } |
||
| 38 |