This repository has been archived on 2019-03-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
paper-pi/app/Decorators/TextBreakDecorator.php
2019-03-01 07:58:22 +01:00

25 lines
430 B
PHP

<?php
/**
* Created by PhpStorm.
* User: k
* Date: 28.02.2019
* Time: 21:32
*/
namespace App\Decorators;
class TextBreakDecorator extends TextConverterDecorator
{
private $lineLength = 32;
/**
* łamie tekst w miejscu spacji do długości 32 znaki na linię
* @return string
*/
public function getText(): string
{
return wordwrap($this->text->getText(), $this->lineLength);
}
}