Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class ThirdpartyId |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | private $id; |
||
20 | |||
21 | /** |
||
22 | * @param int $id |
||
23 | */ |
||
24 | public function __construct($id) |
||
25 | { |
||
26 | Assert::integer($id); |
||
27 | Assert::greaterThan($id, 0); |
||
28 | Assert::notNull($id); |
||
29 | |||
30 | $this->id = $id; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return int |
||
35 | */ |
||
36 | public function getId() |
||
39 | } |
||
40 | } |
||
41 |