| 1 | <?php |
||
| 10 | class Nip_Form_DisplayGroup extends Collection |
||
|
|
|||
| 11 | { |
||
| 12 | use \Nip\Form\Utility\HasAttributesTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Nip_Form |
||
| 16 | */ |
||
| 17 | protected $_form; |
||
| 18 | |||
| 19 | protected $renderer; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return Nip_Form|null |
||
| 23 | */ |
||
| 24 | public function getForm() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param AbstractForm $form |
||
| 31 | * @return Nip_Form_DisplayGroup |
||
| 32 | */ |
||
| 33 | 1 | public function setForm(AbstractForm $form) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param AbstractElement $element |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | 1 | public function addElement(AbstractElement $element) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $legend |
||
| 53 | * @return Nip_Form_DisplayGroup |
||
| 54 | */ |
||
| 55 | 1 | public function setLegend($legend) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return mixed|null |
||
| 62 | */ |
||
| 63 | public function getLegend() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return mixed |
||
| 70 | */ |
||
| 71 | public function render() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return Nip_Form_Renderer_DisplayGroup |
||
| 78 | */ |
||
| 79 | public function getRenderer() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param string $type |
||
| 90 | * @return Nip_Form_Renderer_DisplayGroup |
||
| 91 | */ |
||
| 92 | public function getNewRenderer($type = 'basic') |
||
| 101 | } |
||
| 102 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.