28 lines
421 B
PHP
28 lines
421 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: k
|
|
* Date: 28.02.2019
|
|
* Time: 20:35
|
|
*/
|
|
|
|
namespace App\Decorators;
|
|
|
|
|
|
use App\Decorators\Interfaces\TextConverterDecoratorInterface;
|
|
|
|
class Text implements TextConverterDecoratorInterface
|
|
{
|
|
|
|
private $text;
|
|
|
|
public function __construct(string $text)
|
|
{
|
|
$this->text = $text;
|
|
}
|
|
|
|
public function getText(): string
|
|
{
|
|
return $this->text;
|
|
}
|
|
} |