Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved |
||
4 | class ProjectID |
||
5 | { |
||
6 | /** |
||
7 | * @var string |
||
8 | */ |
||
9 | protected $id; |
||
10 | |||
11 | /** |
||
12 | * ProjectID constructor. |
||
13 | * @param string $id |
||
14 | */ |
||
15 | public function __construct(string $id) |
||
16 | { |
||
17 | $this->id = $id; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @return string |
||
22 | */ |
||
23 | public function getID(): string |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * The __toString method allows a class to decide how it will react when it is converted to a string. |
||
30 | * |
||
31 | * @return string |
||
32 | * @link http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring |
||
33 | */ |
||
34 | public function __toString() |
||
39 |