| 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 bool |
||
| 21 | * |
||
| 22 | * @JMS\Type("boolean") |
||
| 23 | * @JMS\SerializedName("enabled") |
||
| 24 | */ |
||
| 25 | private $enabled; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var integer |
||
| 29 | * |
||
| 30 | * @JMS\Type("integer") |
||
| 31 | * @JMS\SerializedName("power") |
||
| 32 | */ |
||
| 33 | private $power; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Broadcasting interval. |
||
| 37 | * |
||
| 38 | * @var integer |
||
| 39 | * |
||
| 40 | * @JMS\Type("integer") |
||
| 41 | * @JMS\SerializedName("interval") |
||
| 42 | */ |
||
| 43 | private $interval; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var string |
||
| 47 | * |
||
| 48 | * @JMS\Type("string") |
||
| 49 | * @JMS\SerializedName("url") |
||
| 50 | */ |
||
| 51 | private $url; |
||
| 52 | |||
| 53 | public function __construct(int $index, ?bool $enabled, ?int $power, ?int $interval, ?string $url) |
||
| 61 | |||
| 62 | public function index(): int |
||
| 66 | |||
| 67 | public function isEnabled(): ?bool |
||
| 71 | |||
| 72 | public function power(): ?int |
||
| 76 | |||
| 77 | public function interval(): ?int |
||
| 81 | |||
| 82 | public function url(): ?string |
||
| 86 | } |
||
| 87 |