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