Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
139 | 34 | public static function fromOrientatedItem(OrientatedItem $orientatedItem, $x, $y, $z) |
|
140 | { |
||
141 | 34 | return new static( |
|
142 | 34 | $orientatedItem->getItem(), |
|
143 | 34 | $x, |
|
144 | 34 | $y, |
|
145 | 34 | $z, |
|
146 | 34 | $orientatedItem->getWidth(), |
|
147 | 34 | $orientatedItem->getLength(), |
|
148 | 34 | $orientatedItem->getDepth() |
|
149 | ); |
||
150 | } |
||
151 | } |
||
153 |