PluginProbe
The Innovative Form Builder – IvyForms / 0.8
The Innovative Form Builder – IvyForms v0.8
1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 1.2 1.3
ivyforms / backend / src / ValueObjects / Number / Integer / IDs.php

IDs.php in The Innovative Form Builder – IvyForms 0.8, at backend/src/ValueObjects/Number/Integer/IDs.php

47 lines 747 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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