HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/switch4u.komma.nl/vendor/komma/kms/src/Core/Attributes/Title.php
<?php

namespace Komma\KMS\Core\Attributes;

class Title extends Attribute
{

    protected ?int $getsValueFrom = Attribute::NonInteractiveAttribute;

    /**
     * Returns a view that visually represents this attribute
     */
    public function render(): string
    {
        return view('KMS::attributes.title', [
            'attribute' => $this
        ])->render();
    }

    /**
     * Alias for setValue, because in this attribute the value is the label
     *
     * @param string $labelText
     * @return $this
     */
    public function setLabelText(string $labelText)
    {
        $this->setValue($labelText);
        return $this;
    }
}