| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 21 | public function __construct(Item $item, int $width, int $length, int $depth) |
|
| 52 | { |
||
| 53 | 21 | $this->item = $item; |
|
| 54 | 21 | $this->width = $width; |
|
| 55 | 21 | $this->length = $length; |
|
| 56 | 21 | $this->depth = $depth; |
|
| 57 | 21 | $this->tippingPoint = atan(min($this->length, $this->width) / $this->depth); |
|
| 58 | 21 | } |
|
| 130 |