*/ protected array $attributes = [ 'class' => '', ]; /** * @param array $properties * @param array $attributes */ public function __construct( protected array $properties, array $attributes ) { // overwrite default properties if set foreach ($properties as $key => $value) { $this->{$key} = $value; } $this->attributes = array_merge($this->attributes, $attributes); } public function render(): string { return static::class . ': RENDER METHOD NOT IMPLEMENTED'; } }