1 | <?php |
||
26 | final class Resource implements InitializationInterface { |
||
27 | /** |
||
28 | * @var bool whether the subscription will automatically be renewed when it reaches its current expiry time |
||
29 | */ |
||
30 | private $autoRenewing = false; |
||
31 | |||
32 | /** |
||
33 | * @var int time at which the subscription will expire, milliseconds |
||
34 | */ |
||
35 | private $expiryTimeMillis = 0; |
||
36 | |||
37 | /** |
||
38 | * @var string represents an in-app purchase object in the android publisher service |
||
39 | */ |
||
40 | private $kind = ''; |
||
41 | |||
42 | /** |
||
43 | * @var int time at which the subscription was granted, milliseconds |
||
44 | */ |
||
45 | private $startTimeMillis = 0; |
||
46 | |||
47 | /** |
||
48 | * @return int time at which the subscription will expire, milliseconds |
||
49 | */ |
||
50 | 2 | public function getExpiryTimeMillis() { |
|
53 | |||
54 | /** |
||
55 | * @return float time at which the subscription will expire, seconds |
||
|
|||
56 | */ |
||
57 | 2 | public function getExpiryTime() { |
|
60 | |||
61 | /** |
||
62 | * @return bool check if subscription is expired now |
||
63 | */ |
||
64 | 2 | public function isExpired() { |
|
67 | |||
68 | /** |
||
69 | * @return bool whether the subscription will automatically be renewed when it reaches its current expiry time |
||
70 | */ |
||
71 | 2 | public function isAutoRenewing() { |
|
74 | |||
75 | /** |
||
76 | * @return string represents an in-app purchase object in the android publisher service |
||
77 | */ |
||
78 | 2 | public function getKind() { |
|
81 | |||
82 | /** |
||
83 | * @return int time at which the subscription was granted, milliseconds |
||
84 | */ |
||
85 | 2 | public function getStartTimeMillis() { |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 1 | public static function initializeByString($string) { |
|
102 | |||
103 | /** |
||
104 | * @inheritdoc |
||
105 | */ |
||
106 | 1 | public function __toString() { |
|
119 | } |
||
120 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.