mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 01:14:01 +02:00
update deps & install rector
This commit is contained in:
@@ -11,15 +11,13 @@ class Form implements Renderable
|
||||
/**
|
||||
* @var Renderable[]
|
||||
*/
|
||||
private $elements;
|
||||
private array $elements;
|
||||
|
||||
/**
|
||||
* runs through all elements and calls render() on them, then returns the complete representation
|
||||
* of the form.
|
||||
*
|
||||
* from the outside, one will not see this and the form will act like a single object instance
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function render(): string
|
||||
{
|
||||
@@ -34,9 +32,6 @@ class Form implements Renderable
|
||||
return $formCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Renderable $element
|
||||
*/
|
||||
public function addElement(Renderable $element)
|
||||
{
|
||||
$this->elements[] = $element;
|
||||
|
Reference in New Issue
Block a user