Total Complexity | 8 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Beacon |
||
10 | { |
||
11 | private string $minorIdentifier; |
||
12 | private string $majorIdentifier; |
||
13 | private UuidInterface $proximityUUID; |
||
14 | private string $relevantText; |
||
15 | |||
16 | public function __construct(UuidInterface $proximityUUID) |
||
17 | { |
||
18 | $this->proximityUUID = $proximityUUID; |
||
19 | } |
||
20 | |||
21 | public function setMinorIdentifier(string $minorIdentifier): void |
||
22 | { |
||
23 | $this->minorIdentifier = $minorIdentifier; |
||
24 | } |
||
25 | |||
26 | public function setMajorIdentifier(string $majorIdentifier): void |
||
27 | { |
||
28 | $this->majorIdentifier = $majorIdentifier; |
||
29 | } |
||
30 | |||
31 | public function setRelevantText(string $relevantText): void |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return array<string, float|string> |
||
38 | */ |
||
39 | public function toArray(): array |
||
58 | } |
||
59 | } |
||
60 |