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