src/EaselDrawing/Align.php 1 location
|
@@ 18-24 (lines=7) @@
|
15 |
|
$this->setValue($value); |
16 |
|
} |
17 |
|
|
18 |
|
public function setValue(string $value) |
19 |
|
{ |
20 |
|
if (! in_array($value, [static::LEFT, static::CENTER, static::RIGHT])) { |
21 |
|
throw new \InvalidArgumentException('Align value is not valid'); |
22 |
|
} |
23 |
|
$this->value = $value; |
24 |
|
} |
25 |
|
|
26 |
|
public function getValue() |
27 |
|
{ |
src/EaselDrawing/Orientation.php 1 location
|
@@ 17-23 (lines=7) @@
|
14 |
|
$this->setValue($value); |
15 |
|
} |
16 |
|
|
17 |
|
public function setValue(string $value) |
18 |
|
{ |
19 |
|
if (! in_array($value, [static::LANDSCAPE, static::PORTRAIT])) { |
20 |
|
throw new \InvalidArgumentException('Orientation value is not valid'); |
21 |
|
} |
22 |
|
$this->value = $value; |
23 |
|
} |
24 |
|
|
25 |
|
public function getValue() |
26 |
|
{ |
src/EaselDrawing/TextBackground.php 1 location
|
@@ 32-38 (lines=7) @@
|
29 |
|
return $this->color; |
30 |
|
} |
31 |
|
|
32 |
|
public function setValue(string $value) |
33 |
|
{ |
34 |
|
if (! in_array($value, [static::NONE, static::FIT, static::BOX])) { |
35 |
|
throw new \InvalidArgumentException('TextBackground value is not valid'); |
36 |
|
} |
37 |
|
$this->value = $value; |
38 |
|
} |
39 |
|
|
40 |
|
public function setColor(Color $color) |
41 |
|
{ |