| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct($fromX, $fromY, $toX, $toY, $rotation) |
||
| 30 | { |
||
| 31 | parent::__construct(); |
||
| 32 | $this->getBorder()->setLineStyle(Border::LINE_SINGLE); |
||
| 33 | |||
| 34 | $this->setOffsetX($fromX); |
||
| 35 | $this->setOffsetY($fromY); |
||
| 36 | $this->setWidth($toX - $fromX); |
||
| 37 | $this->setHeight($toY - $fromY); |
||
| 38 | $this->setRotation($rotation); |
||
| 39 | } |
||
| 40 | |||
| 52 |