1 | <?php |
||
7 | class Duration implements AttributeInterface |
||
8 | { |
||
9 | use DumpTrait; |
||
10 | |||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $milliseconds; |
||
15 | |||
16 | /** |
||
17 | * @param string|int $duration |
||
18 | */ |
||
19 | 14 | public function __construct($duration) |
|
23 | |||
24 | /** |
||
25 | * @return int |
||
26 | */ |
||
27 | 4 | public function getMilliseconds(): int |
|
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 1 | public function __toString(): string |
|
39 | } |
||
40 |