| Total Complexity | 7 | 
| Total Lines | 47 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | class Field extends Component  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * @var string  | 
            ||
| 12 | */  | 
            ||
| 13 | public $name;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * @var bool  | 
            ||
| 17 | */  | 
            ||
| 18 | public $label;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @var false|mixed  | 
            ||
| 22 | */  | 
            ||
| 23 | public $required;  | 
            ||
| 24 | /**  | 
            ||
| 25 | * @var Repository  | 
            ||
| 26 | */  | 
            ||
| 27 | private $config;  | 
            ||
| 28 | |||
| 29 | public function __construct(Repository $config, string $name, $required = false, $label = true)  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | public function highlightsRequired()  | 
            ||
| 38 |     { | 
            ||
| 39 |         return $this->config->get('form.highlights_requirement') === 'required' && $this->required; | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | public function highlightsOptional()  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | public function highlightsLabel()  | 
            ||
| 50 | }  | 
            ||
| 51 | |||
| 52 | public function render()  | 
            ||
| 57 |