| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | abstract class Field |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Builder |
||
| 11 | */ |
||
| 12 | protected $builder; |
||
| 13 | |||
| 14 | public function __construct( Builder $builder ) |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return string|void |
||
| 21 | */ |
||
| 22 | public function build() |
||
| 23 | { |
||
| 24 | glsr_log()->error( 'Build method is not implemented for '.__CLASS__ ); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public static function defaults() |
||
| 31 | { |
||
| 32 | return []; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public static function required() |
||
| 39 | { |
||
| 40 | return []; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | protected function mergeFieldArgs() |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |