1 | <?php |
||
28 | class Bounds extends Type implements ArrayableInterface |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * @var Point the top left corner of the rectangle |
||
33 | */ |
||
34 | private $_min; |
||
35 | |||
36 | /** |
||
37 | * @var Point the bottom right corner of the rectangle |
||
38 | */ |
||
39 | private $_max; |
||
40 | |||
41 | /** |
||
42 | * @param Point $max |
||
43 | */ |
||
44 | 3 | public function setMax(Point $max) |
|
48 | |||
49 | /** |
||
50 | * @return Point |
||
51 | */ |
||
52 | 3 | public function getMax() |
|
56 | |||
57 | /** |
||
58 | * @param Point $min |
||
59 | */ |
||
60 | 3 | public function setMin(Point $min) |
|
64 | |||
65 | /** |
||
66 | * @return Point |
||
67 | */ |
||
68 | 3 | public function getMin() |
|
72 | |||
73 | /** |
||
74 | * Initializes the object |
||
75 | * @throws \yii\base\InvalidConfigException |
||
76 | */ |
||
77 | 3 | public function init() |
|
83 | |||
84 | /** |
||
85 | * @return \yii\web\JsExpression the js initialization code of the object |
||
86 | */ |
||
87 | 3 | public function encode() |
|
94 | |||
95 | /** |
||
96 | * Converts the object into an array. |
||
97 | * |
||
98 | * @param bool $encode whether to return the array json_encoded or raw |
||
99 | * |
||
100 | * @return array the array representation of this object |
||
101 | */ |
||
102 | 3 | public function toArray($encode = false) |
|
108 | |||
109 | |||
110 | } |
||
111 |