| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class IntegerObject implements Serializable |
||
| 14 | { |
||
| 15 | /** @var int */ |
||
| 16 | private $integer; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param int $integer The value to initialise the object with. |
||
| 20 | */ |
||
| 21 | public function __construct(int $integer) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return int The integer value of the object. |
||
| 28 | */ |
||
| 29 | public function toInteger(): int |
||
| 32 | } |
||
| 33 | |||
| 34 | public function serialize(): string |
||
| 37 | } |
||
| 38 | |||
| 39 | public function unserialize($serialized): void |
||
| 49 |