src/Charcoal/Image/Effect/AbstractCropEffect.php 1 location
|
@@ 61-70 (lines=10) @@
|
58 |
|
* @throws InvalidArgumentException |
59 |
|
* @return $this Chainable |
60 |
|
*/ |
61 |
|
public function setHeight($height) |
62 |
|
{ |
63 |
|
if (!is_int($height) || ($height < 0)) { |
64 |
|
throw new InvalidArgumentException( |
65 |
|
'Height must be a positive integer' |
66 |
|
); |
67 |
|
} |
68 |
|
$this->height = $height; |
69 |
|
return $this; |
70 |
|
} |
71 |
|
|
72 |
|
/** |
73 |
|
* @return float |
src/Charcoal/Image/Effect/AbstractResizeEffect.php 1 location
|
@@ 127-136 (lines=10) @@
|
124 |
|
* @throws InvalidArgumentException If the height argument is not numeric or lower than 0. |
125 |
|
* @return Rotate Chainable |
126 |
|
*/ |
127 |
|
public function setHeight($height) |
128 |
|
{ |
129 |
|
if (!is_int($height) || ($height < 0)) { |
130 |
|
throw new InvalidArgumentException( |
131 |
|
'Height must be a positive integer' |
132 |
|
); |
133 |
|
} |
134 |
|
$this->height = (int)$height; |
135 |
|
return $this; |
136 |
|
} |
137 |
|
|
138 |
|
/** |
139 |
|
* @return float |