1 | <?php |
||
12 | final class HR implements ExtensionInterface |
||
13 | { |
||
14 | /** |
||
15 | * Value of the heart rate. |
||
16 | * |
||
17 | * @var int |
||
18 | */ |
||
19 | private $value; |
||
20 | |||
21 | /** |
||
22 | * @param int $value |
||
23 | */ |
||
24 | private function __construct(?int $value) |
||
31 | |||
32 | /** |
||
33 | * @param mixed $value |
||
34 | * @return HR |
||
35 | */ |
||
36 | public static function fromValue($value): HR |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function value() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public static function ID(): string |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function name(): string |
||
66 | } |
||
67 |