| Conditions | 2 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function render() |
||
| 13 | { |
||
| 14 | $canvas = $this->getImageManager()->canvas($this->getWidth(), $this->getHeight(), $this->getTracerColour()); |
||
| 15 | |||
| 16 | $rectangleConf = function ($rectangle) { |
||
| 17 | $rectangle->border($this->getLineWeight(), '#000'); |
||
| 18 | |||
| 19 | if ($this->isFilled()) { |
||
| 20 | $rectangle->background('#000'); |
||
| 21 | } |
||
| 22 | }; |
||
| 23 | |||
| 24 | $canvas->rectangle( |
||
| 25 | 0, |
||
| 26 | 0, |
||
| 27 | $this->getWidth() - $this->getLineWeight(), |
||
| 28 | $this->getHeight() - $this->getLineWeight(), |
||
| 29 | $rectangleConf |
||
| 30 | ); |
||
| 31 | |||
| 32 | return $canvas; |
||
| 33 | } |
||
| 42 |