public function applyAttributes(array $attributes): ComponentInterface
    {
        if (count($attributes) > 0) {
            foreach ($attributes as $name => $value) {
                $this->setAttribute($name, $value);
            }
        }

        return $this;
    }