1 | <?php |
||
10 | class TestBox implements Box { |
||
11 | |||
12 | public function __construct($aReference, $aOuterWidth,$aOuterLength,$aOuterDepth,$aEmptyWeight,$aInnerWidth,$aInnerLength,$aInnerDepth,$aMaxWeight) { |
||
13 | $this->reference = $aReference; |
||
14 | $this->outerWidth = $aOuterWidth; |
||
15 | $this->outerLength = $aOuterLength; |
||
16 | $this->outerDepth = $aOuterDepth; |
||
17 | $this->emptyWeight = $aEmptyWeight; |
||
18 | $this->innerWidth = $aInnerWidth; |
||
19 | $this->innerLength = $aInnerLength; |
||
20 | $this->innerDepth = $aInnerDepth; |
||
21 | $this->maxWeight = $aMaxWeight; |
||
22 | $this->innerVolume = $this->innerWidth * $this->innerLength * $this->innerDepth; |
||
23 | } |
||
24 | |||
25 | public function getReference() { |
||
26 | return $this->reference; |
||
27 | } |
||
28 | |||
29 | public function getOuterWidth() { |
||
30 | return $this->outerWidth; |
||
31 | } |
||
32 | |||
33 | public function getOuterLength() { |
||
34 | return $this->outerLength; |
||
35 | } |
||
36 | |||
37 | public function getOuterDepth() { |
||
38 | return $this->outerDepth; |
||
39 | } |
||
40 | |||
41 | public function getEmptyWeight() { |
||
42 | return $this->emptyWeight; |
||
43 | } |
||
44 | |||
45 | public function getInnerWidth() { |
||
46 | return $this->innerWidth; |
||
47 | } |
||
48 | |||
49 | public function getInnerLength() { |
||
50 | return $this->innerLength; |
||
51 | } |
||
52 | |||
53 | public function getInnerDepth() { |
||
54 | return $this->innerDepth; |
||
55 | } |
||
56 | |||
57 | public function getInnerVolume() { |
||
58 | return $this->innerVolume; |
||
59 | } |
||
60 | |||
61 | public function getMaxWeight() { |
||
62 | return $this->maxWeight; |
||
63 | } |
||
64 | } |
||
65 | |||
102 |