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
]);
}
}