1 | <?php |
||
10 | final class Transform implements TransformInterface |
||
11 | { |
||
12 | private $trans; |
||
13 | |||
14 | private $data; |
||
15 | |||
16 | private $sequence; |
||
17 | |||
18 | private $argDelimiter = TransformInterface::TRANSFORM_ARG_DELIM_SPACE; |
||
19 | |||
20 | /** |
||
21 | * @var PackerInterface |
||
22 | */ |
||
23 | private $packer; |
||
24 | |||
25 | 111 | private function __construct() |
|
28 | |||
29 | /** |
||
30 | * Use this method to instantiate Transform class. |
||
31 | * |
||
32 | * @param null|string $transformString |
||
33 | * |
||
34 | * @param null|TransformMatcherInterface $matcher |
||
35 | * |
||
36 | * @param PackerInterface $packer |
||
|
|||
37 | * |
||
38 | * @return Transform |
||
39 | */ |
||
40 | 111 | public static function newInstance($transformString = null, TransformMatcherInterface $matcher = null, |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 7 | public function result() |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 2 | public function setArgumentDelimiter($delim) |
|
79 | |||
80 | /** |
||
81 | * @inheritdoc |
||
82 | */ |
||
83 | 13 | public function rotate($angle, $cx = null, $cy = null) |
|
94 | |||
95 | 24 | private function shortcutBuild($transform, $data) |
|
108 | |||
109 | 24 | private function buildTransformString() |
|
122 | |||
123 | /** |
||
124 | * @inheritdoc |
||
125 | */ |
||
126 | 8 | public function translate($x, $y = null) |
|
130 | |||
131 | /** |
||
132 | * @inheritdoc |
||
133 | */ |
||
134 | 5 | public function scale($x, $y = null) |
|
138 | |||
139 | /** |
||
140 | * @inheritdoc |
||
141 | */ |
||
142 | 2 | public function skewX($x) |
|
146 | |||
147 | /** |
||
148 | * @inheritdoc |
||
149 | */ |
||
150 | 2 | public function skewY($y) |
|
154 | |||
155 | /** |
||
156 | * @inheritdoc |
||
157 | */ |
||
158 | 4 | public function matrix(array $matrix) |
|
166 | |||
167 | /** |
||
168 | * @return array |
||
169 | */ |
||
170 | 6 | public function getData() |
|
174 | |||
175 | /** |
||
176 | * @inheritdoc |
||
177 | */ |
||
178 | 6 | public function compact() |
|
184 | |||
185 | /** |
||
186 | * Converts all transformations to matrix. |
||
187 | * |
||
188 | * @return string The converted to matrix string transformation. |
||
189 | */ |
||
190 | 2 | public function toMatrix() |
|
196 | |||
197 | /** |
||
198 | * Clears all transformation data. |
||
199 | */ |
||
200 | 1 | public function clearTransformation() |
|
206 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.