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 */
14namespace Pop\Form;
15
16use 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
29interface 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     * @return array
43     */
44    public function toArray(): array;
45
46    /**
47     * Method to iterate over object
48     *
49     * @return ArrayIterator
50     */
51    public function getIterator(): ArrayIterator;
52
53    /**
54     * Set method to set the property to the value of values[$name]
55     *
56     * @param  string $name
57     * @param  mixed $value
58     * @return void
59     */
60    public function __set(string $name, mixed $value): void;
61
62    /**
63     * Get method to return the value of values[$name]
64     *
65     * @param  string $name
66     * @return mixed
67     */
68    public function __get(string $name): mixed;
69
70    /**
71     * Return the isset value of values[$name]
72     *
73     * @param  string $name
74     * @return bool
75     */
76    public function __isset(string $name): bool;
77
78    /**
79     * Unset values[$name]
80     *
81     * @param  string $name
82     * @return void
83     */
84    public function __unset(string $name): void;
85
86    /**
87     * ArrayAccess offsetExists
88     *
89     * @param  mixed $offset
90     * @return bool
91     */
92    public function offsetExists(mixed $offset): bool;
93
94    /**
95     * ArrayAccess offsetGet
96     *
97     * @param  mixed $offset
98     * @return mixed
99     */
100    public function offsetGet(mixed $offset): mixed;
101
102    /**
103     * ArrayAccess offsetSet
104     *
105     * @param  mixed $offset
106     * @param  mixed $value
107     * @return void
108     */
109    public function offsetSet(mixed $offset, mixed $value): void;
110
111    /**
112     * ArrayAccess offsetUnset
113     *
114     * @param  mixed $offset
115     * @return void
116     */
117    public function offsetUnset(mixed $offset): void;
118
119}