Separate text filter decorators.
This commit is contained in:
27
app/Paper/PrinterElements/TitlePrinterElement.php
Normal file
27
app/Paper/PrinterElements/TitlePrinterElement.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: k
|
||||
* Date: 27.02.2019
|
||||
* Time: 23:45
|
||||
*/
|
||||
|
||||
namespace App\Paper\PrinterElements;
|
||||
|
||||
|
||||
use App\Interfaces\PrinterElementInterface;
|
||||
|
||||
class TitlePrinterElement implements PrinterElementInterface
|
||||
{
|
||||
private $title;
|
||||
|
||||
public function __construct($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
public function render(): string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user