1 | <?php |
||
12 | final class Transform implements TransformInterface |
||
13 | { |
||
14 | private $trans; |
||
15 | |||
16 | private $data; |
||
17 | |||
18 | private $sequence; |
||
19 | |||
20 | private $argDelimiter = TransformInterface::ARG_DELIM_SPACE; |
||
21 | |||
22 | /** |
||
23 | * @var TransformMatcherInterface |
||
24 | */ |
||
25 | private $matcher; |
||
|
|||
26 | |||
27 | private function __construct() |
||
30 | |||
31 | /** |
||
32 | * Use this method to instantiate Transform class. |
||
33 | * |
||
34 | * @param $transformString |
||
35 | * |
||
36 | * @param TransformMatcherInterface $matcher |
||
37 | * |
||
38 | * @return Transform |
||
39 | */ |
||
40 | public static function newInstance($transformString = null, TransformMatcherInterface $matcher = null) |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function result() |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function setArgumentDelimiter($delim) |
||
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | public function rotate($angle, $cx = null, $cy = null) |
||
92 | |||
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | public function translate($x, $y = null) |
||
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | */ |
||
104 | public function scale($x, $y = null) |
||
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | public function skewX($x) |
||
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | public function skewY($y) |
||
124 | |||
125 | /** |
||
126 | * @inheritdoc |
||
127 | */ |
||
128 | public function matrix(array $matrix) |
||
136 | |||
137 | /** |
||
138 | * @return array |
||
139 | */ |
||
140 | public function getData() |
||
144 | |||
145 | private function hasTransform($transform) |
||
149 | |||
150 | private function getTransform($transform) |
||
158 | |||
159 | private function addTransformSequence($transform) |
||
163 | |||
164 | private function buildTransformString() |
||
174 | |||
175 | private function setTransformData($transform, $data) |
||
187 | |||
188 | private function addTransformIfNeeded($transform) |
||
194 | |||
195 | private function shortcutBuild($transform, $data) |
||
203 | } |
This check marks private properties in classes that are never used. Those properties can be removed.