File: D:/HostingSpaces/SBogers10/honger.komma.pro/app/KommaApp/Kms/Core/Attributes/Title.php
<?php
/**
* Created by PhpStorm.
* User: julesgraus
* Date: 22/11/17
* Time: 11:36
*/
namespace App\KommaApp\Kms\Core\Attributes;
class Title extends Attribute
{
/**
* Title constructor.
* @param string $title The text of the title
*/
public function __construct(string $title = '')
{
parent::__construct();
$this->mapValueFrom(Attribute::ValueFromItself, $title);
$this->setValue($title);
}
/**
* Returns a view that visually represents this attribute
*
* @return \Illuminate\View\View
*/
public function render()
{
return \View::make('kms/attributes.title', [
'attribute' => $this
]);
}
}