1 | <?php |
||
9 | final class EddystoneUrl |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | * |
||
14 | * @JMS\Type("integer") |
||
15 | * @JMS\SerializedName("index") |
||
16 | */ |
||
17 | private $index; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | * |
||
22 | * @JMS\Type("string") |
||
23 | * @JMS\SerializedName("name") |
||
24 | */ |
||
25 | private $name; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | * |
||
30 | * @JMS\Type("boolean") |
||
31 | * @JMS\SerializedName("enabled") |
||
32 | */ |
||
33 | private $enabled; |
||
34 | |||
35 | /** |
||
36 | * @var integer |
||
37 | * |
||
38 | * @JMS\Type("integer") |
||
39 | * @JMS\SerializedName("power") |
||
40 | */ |
||
41 | private $power; |
||
42 | |||
43 | /** |
||
44 | * Broadcasting interval. |
||
45 | * |
||
46 | * @var integer |
||
47 | * |
||
48 | * @JMS\Type("integer") |
||
49 | * @JMS\SerializedName("interval") |
||
50 | */ |
||
51 | private $interval; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | * |
||
56 | * @JMS\Type("string") |
||
57 | * @JMS\SerializedName("url") |
||
58 | */ |
||
59 | private $url; |
||
60 | |||
61 | public function __construct(int $index, string $name, bool $enabled, int $power, int $interval, string $url) |
||
70 | |||
71 | public function index(): int |
||
75 | |||
76 | public function name(): string |
||
80 | |||
81 | public function isEnabled(): bool |
||
85 | |||
86 | public function power(): int |
||
90 | |||
91 | public function interval(): int |
||
95 | |||
96 | public function url(): string |
||
100 | } |
||
101 |