We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class BaseField extends BaseComponent |
||
| 22 | { |
||
| 23 | public function __construct(string|array $attributes) |
||
| 24 | { |
||
| 25 | $collection = new FieldCollection($attributes, static::attributes(), static::rules(), static::defaults(), static::blocked()); |
||
| 26 | |||
| 27 | parent::__construct($collection); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * IMPORTANT: the order of the attributes is important. If you need some attribute that depends on another |
||
| 32 | * attribute, make sure that the attribute that you need is defined before the attribute that depends on it. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public static function attributes(): array |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | |||
| 47 | public static function make(string|array $attributes): static |
||
| 52 |