@@ -89,7 +89,7 @@ |
||
89 | 89 | * @param string $paletteName |
90 | 90 | * @param string $paletteType |
91 | 91 | * @param string $palettesFile |
92 | - * @return bool|ColorGeneratorInterface |
|
92 | + * @return ColorGeneratorInterface |
|
93 | 93 | * @throws \InvalidArgumentException |
94 | 94 | */ |
95 | 95 | public function getColorGenerator($paletteName, $paletteType, $palettesFile = null) |
@@ -89,6 +89,9 @@ |
||
89 | 89 | return new self($this->getX() + $deltaX, $this->getY() + $deltaY, $this->getWidth(), $this->getHeight()); |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param integer $count |
|
94 | + */ |
|
92 | 95 | public function resize($count) |
93 | 96 | { |
94 | 97 | return new self( |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return $this; |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $message |
|
63 | + */ |
|
61 | 64 | public function log($message, $level = MonologLogger::INFO, array $context = array()) |
62 | 65 | { |
63 | 66 | if (!$this->outputChosen) { |
@@ -58,7 +58,6 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * @param string $word |
60 | 60 | * @param string $font |
61 | - * @param int $size |
|
62 | 61 | * @param int $angle |
63 | 62 | * @return bool|Box |
64 | 63 | */ |
@@ -95,6 +94,11 @@ discard block |
||
95 | 94 | return false; |
96 | 95 | } |
97 | 96 | |
97 | + /** |
|
98 | + * @param string $word |
|
99 | + * @param string $font |
|
100 | + * @param integer $angle |
|
101 | + */ |
|
98 | 102 | public function addWordToMask($word, Box $place, $font, $size, $angle) |
99 | 103 | { |
100 | 104 | $base = $this->metrics->calculateSize($word, $font, $size, $angle); |