| @@ -3,37 +3,41 @@ | ||
| 3 | 3 | namespace FluentForm\App\Services\FormBuilder; |
| 4 | 4 | |
| 5 | 5 | class GroupSetterProxy |
| 6 | 6 | { |
| 7 | - /** | |
| 8 | - * Element group | |
| 9 | - * @var string | |
| 10 | - */ | |
| 11 | - protected $group = null; | |
| 7 | + /** | |
| 8 | + * Element group | |
| 9 | + * | |
| 10 | + * @var string | |
| 11 | + */ | |
| 12 | + protected $group = null; | |
| 12 | 13 | |
| 13 | - /** | |
| 14 | - * FluentForm\App\Services\FormBuilder\Components | |
| 15 | - * @var object | |
| 16 | - */ | |
| 17 | - protected $collection = null; | |
| 14 | + /** | |
| 15 | + * Form builder components collection | |
| 16 | + * | |
| 17 | + * @var \FluentForm\App\Services\FormBuilder\Components | |
| 18 | + */ | |
| 19 | + protected $collection = null; | |
| 18 | 20 | |
| 19 | - public function __construct($collection, $group) | |
| 20 | - { | |
| 21 | - $this->group = $group; | |
| 22 | - $this->collection = $collection; | |
| 23 | - } | |
| 21 | + public function __construct($collection, $group) | |
| 22 | + { | |
| 23 | + $this->group = $group; | |
| 24 | + $this->collection = $collection; | |
| 25 | + } | |
| 24 | 26 | |
| 25 | - /** | |
| 26 | - * Dynamic call method | |
| 27 | - * @param string $method | |
| 28 | - * @param array $params | |
| 29 | - * @return FluentForm\App\Services\FormBuilder\Components | |
| 30 | - */ | |
| 31 | - public function __call($method, $params) | |
| 32 | - { | |
| 33 | - call_user_func_array([ | |
| 34 | - $this->collection, $method | |
| 35 | - ], array_merge($params, [$this->group])); | |
| 36 | - | |
| 37 | - return $this->collection; | |
| 38 | - } | |
| 39 | -} | |
| 27 | + /** | |
| 28 | + * Dynamic call method | |
| 29 | + * | |
| 30 | + * @param string $method | |
| 31 | + * @param array $params | |
| 32 | + * | |
| 33 | + * @return \FluentForm\App\Services\FormBuilder\Components | |
| 34 | + */ | |
| 35 | + public function __call($method, $params) | |
| 36 | + { | |
| 37 | + call_user_func_array([ | |
| 38 | + $this->collection, $method, | |
| 39 | + ], array_merge($params, [$this->group])); | |
| 40 | + | |
| 41 | + return $this->collection; | |
| 42 | + } | |
| 43 | +} | |