Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Pop PHP Framework (http://www.popphp.org/) |
4 | * |
5 | * @link https://github.com/popphp/popphp-framework |
6 | * @author Nick Sagona, III <dev@nolainteractive.com> |
7 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
8 | * @license http://www.popphp.org/license New BSD License |
9 | */ |
10 | |
11 | /** |
12 | * @namespace |
13 | */ |
14 | namespace Pop\Form; |
15 | |
16 | use ArrayIterator; |
17 | |
18 | /** |
19 | * Form interface class |
20 | * |
21 | * @category Pop |
22 | * @package Pop\Form |
23 | * @author Nick Sagona, III <dev@nolainteractive.com> |
24 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
25 | * @license http://www.popphp.org/license New BSD License |
26 | * @version 4.0.0 |
27 | */ |
28 | |
29 | interface FormInterface |
30 | { |
31 | |
32 | /** |
33 | * Count of values |
34 | * |
35 | * @return int |
36 | */ |
37 | public function count(): int; |
38 | |
39 | /** |
40 | * Get values |
41 | * |
42 | * @param array $options |
43 | * @return array |
44 | */ |
45 | public function toArray(array $options = []): array; |
46 | |
47 | /** |
48 | * Method to iterate over object |
49 | * |
50 | * @return ArrayIterator |
51 | */ |
52 | public function getIterator(): ArrayIterator; |
53 | |
54 | /** |
55 | * Set method to set the property to the value of values[$name] |
56 | * |
57 | * @param string $name |
58 | * @param mixed $value |
59 | * @return void |
60 | */ |
61 | public function __set(string $name, mixed $value): void; |
62 | |
63 | /** |
64 | * Get method to return the value of values[$name] |
65 | * |
66 | * @param string $name |
67 | * @return mixed |
68 | */ |
69 | public function __get(string $name): mixed; |
70 | |
71 | /** |
72 | * Return the isset value of values[$name] |
73 | * |
74 | * @param string $name |
75 | * @return bool |
76 | */ |
77 | public function __isset(string $name): bool; |
78 | |
79 | /** |
80 | * Unset values[$name] |
81 | * |
82 | * @param string $name |
83 | * @return void |
84 | */ |
85 | public function __unset(string $name): void; |
86 | |
87 | /** |
88 | * ArrayAccess offsetExists |
89 | * |
90 | * @param mixed $offset |
91 | * @return bool |
92 | */ |
93 | public function offsetExists(mixed $offset): bool; |
94 | |
95 | /** |
96 | * ArrayAccess offsetGet |
97 | * |
98 | * @param mixed $offset |
99 | * @return mixed |
100 | */ |
101 | public function offsetGet(mixed $offset): mixed; |
102 | |
103 | /** |
104 | * ArrayAccess offsetSet |
105 | * |
106 | * @param mixed $offset |
107 | * @param mixed $value |
108 | * @return void |
109 | */ |
110 | public function offsetSet(mixed $offset, mixed $value): void; |
111 | |
112 | /** |
113 | * ArrayAccess offsetUnset |
114 | * |
115 | * @param mixed $offset |
116 | * @return void |
117 | */ |
118 | public function offsetUnset(mixed $offset): void; |
119 | |
120 | } |