1 | <?php |
||
13 | trait ExpiryDateProviderTrait |
||
14 | { |
||
15 | /** |
||
16 | * @var DateTime |
||
17 | */ |
||
18 | protected $expiryDate; |
||
19 | |||
20 | /** |
||
21 | * @param DateTime $expiryDate |
||
22 | */ |
||
23 | public function setExpiryDate(DateTime $expiryDate = null) |
||
31 | |||
32 | /** |
||
33 | * @return DateTime |
||
34 | */ |
||
35 | public function getExpiryDate() |
||
39 | |||
40 | /** |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function isExpired() |
||
47 | |||
48 | /** |
||
49 | * @return int |
||
50 | */ |
||
51 | public function getExpiryUTCTimestamp() |
||
66 | } |
||
67 |