| @@ -1,18 +1,39 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * Form.php | |
| 4 | + * | |
| 5 | + * The Form class file. | |
| 6 | + * | |
| 7 | + * PHP versions 5 | |
| 8 | + * | |
| 9 | + * @author Alexander Schneider <alexanderschneider85@gmail.com> | |
| 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 | + */ | |
| 2 | 15 | |
| 3 | 16 | declare(strict_types=1); |
| 4 | 17 | |
| 5 | 18 | namespace UserAccessManager\Form; |
| 6 | 19 | |
| 20 | +/** | |
| 21 | + * Class Form | |
| 22 | + * | |
| 23 | + * @package UserAccessManager\Form | |
| 24 | + */ | |
| 7 | 25 | class Form |
| 8 | 26 | { |
| 9 | 27 | /** |
| 10 | 28 | * @var FormElement[] |
| 11 | 29 | */ |
| 12 | - private array $elements = []; | |
| 30 | + private $elements = []; | |
| 13 | 31 | |
| 14 | - public function addElement(FormElement $element): void | |
| 32 | + /** | |
| 33 | + * @param FormElement $element | |
| 34 | + */ | |
| 35 | + public function addElement(FormElement $element) | |
| 15 | 36 | { |
| 16 | 37 | $this->elements[$element->getId()] = $element; |
| 17 | 38 | } |
| 18 | 39 | |