Rotation
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 4
c 1
b 0
f 0
dl 0
loc 8
1
<?php
2
/**
3
 * Box packing (3D bin packing, knapsack problem).
4
 *
5
 * @author Doug Wright
6
 */
7
declare(strict_types=1);
8
9
namespace DVDoug\BoxPacker;
10
11
/*
12
 * Rotation permutations
13
 */
14
enum Rotation: int
15
{
16
    /* Must be placed in it's defined orientation only */
17
    case Never = 1;
18
    /* Can be turned sideways 90°, but cannot be placed *on* it's side e.g. fragile "↑this way up" items */
19
    case KeepFlat = 2;
20
    /* No handling restrictions, item can be placed in any orientation */
21
    case BestFit = 6;
22
}
23