| Total Complexity | 5 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ElementalEditor extends FormField |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ElementalArea $area |
||
| 12 | */ |
||
| 13 | protected $area; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array $type |
||
| 17 | */ |
||
| 18 | protected $types = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $name |
||
| 22 | * @param ElementalArea $area |
||
| 23 | */ |
||
| 24 | public function __construct($name, ElementalArea $area) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array $types |
||
| 35 | * |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function setTypes($types) |
||
| 39 | { |
||
| 40 | $this->types = $types; |
||
| 41 | |||
| 42 | return $this; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getTypes() |
||
| 49 | { |
||
| 50 | $types = $this->types; |
||
| 51 | |||
| 52 | $this->extend('updateGetTypes', $types); |
||
| 53 | |||
| 54 | return $types; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return ElementalArea |
||
| 59 | */ |
||
| 60 | public function getArea() |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getSchemaDataDefaults() |
||
| 72 |