| @@ -1,0 +1,41 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @copyright © Melograno Venture Studio. All rights reserved. | |
| 5 | + * @licence See LICENCE.md for license details. | |
| 6 | + */ | |
| 7 | + | |
| 8 | +namespace IvyForms\ValueObjects\Number\Integer; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * Class IDs | |
| 12 | + * | |
| 13 | + * @package IvyForms\ValueObjects\Number\Integer | |
| 14 | + */ | |
| 15 | +final class IDs | |
| 16 | +{ | |
| 17 | + /** | |
| 18 | + * @var int | |
| 19 | + */ | |
| 20 | + private int $id; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * Id constructor. | |
| 24 | + * | |
| 25 | + * @param int $id | |
| 26 | + */ | |
| 27 | + public function __construct(int $id) | |
| 28 | + { | |
| 29 | + $this->id = $id; | |
| 30 | + } | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * Return the password from the value object | |
| 34 | + * | |
| 35 | + * @return int | |
| 36 | + */ | |
| 37 | + public function getValue(): int | |
| 38 | + { | |
| 39 | + return $this->id; | |
| 40 | + } | |
| 41 | +} | |