PluginProbe
Packeta / 1.4.3
Packeta v1.4.3
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Core / Entity / Size.php

Size.php in Packeta 1.4.3, at src/Packetery/Core/Entity/Size.php

112 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class Size.
4 *
5 * @package Packetery\Entity
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Core\Entity;
11
12 /**
13 * Class Size.
14 *
15 * @package Packetery\Entity
16 */
17 class Size {
18 /**
19 * Length.
20 *
21 * @var float
22 */
23 private $length;
24
25 /**
26 * Width.
27 *
28 * @var float
29 */
30 private $width;
31
32 /**
33 * Height.
34 *
35 * @var float
36 */
37 private $height;
38
39 /**
40 * Size constructor.
41 *
42 * @param float|null $length Length.
43 * @param float|null $width Width.
44 * @param float|null $height Height.
45 */
46 public function __construct( ?float $length = null, ?float $width = null, ?float $height = null ) {
47 $this->length = $length;
48 $this->width = $width;
49 $this->height = $height;
50 }
51
52 /**
53 * Gets length.
54 *
55 * @return float|null
56 */
57 public function getLength(): ?float {
58 return $this->length;
59 }
60
61 /**
62 * Gets width.
63 *
64 * @return float|null
65 */
66 public function getWidth(): ?float {
67 return $this->width;
68 }
69
70 /**
71 * Gets height.
72 *
73 * @return float|null
74 */
75 public function getHeight(): ?float {
76 return $this->height;
77 }
78
79 /**
80 * Sets length.
81 *
82 * @param float|null $length Length.
83 *
84 * @return void
85 */
86 public function setLength( ?float $length ): void {
87 $this->length = $length;
88 }
89
90 /**
91 * Sets width.
92 *
93 * @param float|null $width Width.
94 *
95 * @return void
96 */
97 public function setWidth( ?float $width ): void {
98 $this->width = $width;
99 }
100
101 /**
102 * Ses height.
103 *
104 * @param float|null $height Height.
105 *
106 * @return void
107 */
108 public function setHeight( ?float $height ): void {
109 $this->height = $height;
110 }
111 }
112