1 | <?php |
||
5 | class CropImageDO implements CropImageDOInterface |
||
6 | { |
||
7 | /** |
||
8 | * Position of cropped area X coordinate of image left top corner |
||
9 | * @var int |
||
10 | */ |
||
11 | protected $x; |
||
12 | |||
13 | /** |
||
14 | * Position of cropped area Y coordinate of image left top corner |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $y; |
||
18 | |||
19 | /** |
||
20 | * Width of cropped area |
||
21 | * @var int |
||
22 | */ |
||
23 | protected $width; |
||
24 | |||
25 | /** |
||
26 | * Height of cropped area |
||
27 | * @var int |
||
28 | */ |
||
29 | protected $height; |
||
30 | |||
31 | /** |
||
32 | * @return int |
||
33 | */ |
||
34 | public function getX() |
||
38 | |||
39 | /** |
||
40 | * @param int $x |
||
41 | * @return CropImageDO |
||
42 | */ |
||
43 | public function setX($x) |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getY() |
||
56 | |||
57 | /** |
||
58 | * @param int $y |
||
59 | * @return CropImageDO |
||
60 | */ |
||
61 | public function setY($y) |
||
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getWidth() |
||
74 | |||
75 | /** |
||
76 | * @param int $width |
||
77 | * @return CropImageDO |
||
78 | */ |
||
79 | public function setWidth($width) |
||
84 | |||
85 | /** |
||
86 | * @return int |
||
87 | */ |
||
88 | public function getHeight() |
||
92 | |||
93 | /** |
||
94 | * @param int $height |
||
95 | * @return CropImageDO |
||
96 | */ |
||
97 | public function setHeight($height) |
||
102 | |||
103 | public function __toString() |
||
107 | |||
108 | public function toArray() |
||
117 | } |