1 | <?php |
||
10 | class FieldRendererFixedText implements FieldRendererInterface |
||
11 | { |
||
12 | const FONT_SIZE_MULTIPLIER = 4.2; |
||
13 | |||
14 | const LETTER_SPACING_ADJUSTMENT = 0.97; |
||
15 | |||
16 | /** |
||
17 | * @var Font |
||
18 | */ |
||
19 | private $font; |
||
20 | |||
21 | /** |
||
22 | * @param Font $font |
||
23 | */ |
||
24 | 2 | public function __construct(Font $font) |
|
28 | |||
29 | /** |
||
30 | * @param ImageManager $imageManager |
||
31 | * @param FieldParserInterface $parser |
||
32 | * @param callable $fontResolver |
||
|
|||
33 | * @param callable $graphicResolver |
||
34 | * @return Intervention\Image\Image |
||
35 | */ |
||
36 | 1 | public function render( |
|
66 | |||
67 | /** |
||
68 | * @return FieldParserInterface |
||
69 | */ |
||
70 | 1 | public static function factory() |
|
76 | } |
||
77 |
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.