Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | final class TextLine implements Command |
||
27 | { |
||
28 | use Alignable; |
||
29 | use FontAware; |
||
30 | use Rotatable; |
||
31 | use Invertible; |
||
32 | use Magnifiable; |
||
33 | use ImageFallback; |
||
34 | use PositionAware; |
||
35 | |||
36 | /** @var string */ |
||
37 | private $text; |
||
38 | |||
39 | /** @var int|null */ |
||
40 | private $maxWidth; |
||
41 | |||
42 | public function __construct(int $x, int $y, string $text, string $font, $size = null) |
||
49 | } |
||
50 | |||
51 | public function maxWidth(int $value) |
||
52 | { |
||
53 | $this->maxWidth = $value; |
||
54 | |||
55 | return $this; |
||
56 | } |
||
57 | |||
58 | public function getText(): string |
||
59 | { |
||
60 | return $this->text; |
||
61 | } |
||
62 | |||
63 | public function getMaxWidth(): ?int |
||
66 | } |
||
67 | } |
||
68 |