| @@ -1,18 +1,36 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | -declare(strict_types=1); | |
| 4 | - | |
| 2 | +/** | |
| 3 | + * Form.php | |
| 4 | + * | |
| 5 | + * The Form class file. | |
| 6 | + * | |
| 7 | + * PHP versions 5 | |
| 8 | + * | |
| 9 | + * @author Alexander Schneider <[email protected]> | |
| 10 | + * @copyright 2008-2017 Alexander Schneider | |
| 11 | + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 | |
| 12 | + * @version SVN: $id$ | |
| 13 | + * @link http://wordpress.org/extend/plugins/user-access-manager/ | |
| 14 | + */ | |
| 5 | 15 | namespace UserAccessManager\Form; |
| 6 | 16 | |
| 17 | +/** | |
| 18 | + * Class Form | |
| 19 | + * | |
| 20 | + * @package UserAccessManager\Form | |
| 21 | + */ | |
| 7 | 22 | class Form |
| 8 | 23 | { |
| 9 | 24 | /** |
| 10 | 25 | * @var FormElement[] |
| 11 | 26 | */ |
| 12 | - private array $elements = []; | |
| 27 | + private $elements = []; | |
| 13 | 28 | |
| 14 | - public function addElement(FormElement $element): void | |
| 29 | + /** | |
| 30 | + * @param FormElement $element | |
| 31 | + */ | |
| 32 | + public function addElement(FormElement $element) | |
| 15 | 33 | { |
| 16 | 34 | $this->elements[$element->getId()] = $element; |
| 17 | 35 | } |
| 18 | 36 | |
| @@ -18,9 +36,9 @@ | ||
| 18 | 36 | |
| 19 | 37 | /** |
| 20 | 38 | * @return FormElement[] |
| 21 | 39 | */ |
| 22 | - public function getElements(): array | |
| 40 | + public function getElements() | |
| 23 | 41 | { |
| 24 | 42 | return $this->elements; |
| 25 | 43 | } |
| 26 | 44 | } |