| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | final class Token |
||
| 10 | { |
||
| 11 | private $reference; |
||
| 12 | |||
| 13 | protected $expiryTime; |
||
| 14 | |||
| 15 | 6 | public function __construct($reference, DateTime $expiryTime = null) |
|
| 16 | { |
||
| 17 | 6 | $this->reference = $reference; |
|
| 18 | 6 | $this->expiryTime = $expiryTime; |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | public function getReference() |
|
| 22 | { |
||
| 23 | 1 | return $this->reference; |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function withExpiryTime(DateTime $expiryTime) |
|
| 32 | } |
||
| 33 | |||
| 34 | 4 | public function isExpired() |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | public function __toString() |
|
| 43 | } |
||
| 44 | } |
||
| 45 |