| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public static function makeWithXY(Coordinate $center, float $dx, float $dy): self |
||
| 23 | { |
||
| 24 | $self = new static(); |
||
| 25 | $self->push((clone $center)->plus(-$dx, $dy)); |
||
| 26 | $self->push((clone $center)->plus($dx, $dy)); |
||
| 27 | $self->push((clone $center)->plus($dx, -$dy)); |
||
| 28 | $self->push((clone $center)->plus(-$dx, -$dy)); |
||
| 29 | return $self; |
||
| 30 | } |
||
| 33 |