| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function __construct(int $x, int $y, \Imagick $canvas) |
||
| 36 | { |
||
| 37 | $this->x = $x; |
||
| 38 | $this->y = $y; |
||
| 39 | $this->canvas = clone $canvas; |
||
| 40 | $this->width = $this->canvas->getImageWidth(); |
||
| 41 | $this->height = $this->canvas->getImageHeight(); |
||
| 42 | |||
| 43 | $this->canvas->setImageType(\Imagick::IMGTYPE_TRUECOLOR); |
||
| 44 | $this->canvas->thresholdImage(.5 * \Imagick::getQuantumRange()['quantumRangeLong']); |
||
| 45 | } |
||
| 74 |