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