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/brameda/brameda.nl/app/Komma/Kms/Core/Attributes/Title.php
<?php
/**
 * Created by PhpStorm.
 * User: julesgraus
 * Date: 22/11/17
 * Time: 11:36
 */

namespace App\Komma\Kms\Core\Attributes;

class Title extends Attribute
{
    /**
     * Title constructor.
     * @param string $title The text of the title
     */
    public function __construct(string $title = '')
    {
        parent::__construct();
        $uuid = uniqid('title', true);
        $this->mapValueFrom(Attribute::ValueFromItself, $uuid);
        $this->setValue($title);
    }

    /**
     * Returns a view that visually represents this attribute
     *
     * @return \Illuminate\View\View
     */
    public function render()
    {
        return view('kms/attributes.title', [
            'attribute' => $this
        ]);
    }
}