| 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 |
// phpcs:disable PSR1.Files.SideEffects |
| 11 |
if (!defined('ABSPATH')) { |
| 12 |
exit; // Exit if accessed directly |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Class IDs |
| 17 |
* |
| 18 |
* @package IvyForms\ValueObjects\Number\Integer |
| 19 |
*/ |
| 20 |
final class IDs |
| 21 |
{ |
| 22 |
/** |
| 23 |
* @var int |
| 24 |
*/ |
| 25 |
private int $id; |
| 26 |
|
| 27 |
/** |
| 28 |
* Id constructor. |
| 29 |
* |
| 30 |
* @param int $id |
| 31 |
*/ |
| 32 |
public function __construct(int $id) |
| 33 |
{ |
| 34 |
$this->id = $id; |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* Return the password from the value object |
| 39 |
* |
| 40 |
* @return int |
| 41 |
*/ |
| 42 |
public function getValue(): int |
| 43 |
{ |
| 44 |
return $this->id; |
| 45 |
} |
| 46 |
} |
| 47 |
|