1 | <?php |
||
8 | class Image |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $pathToImage; |
||
12 | |||
13 | /** @var \Spatie\Image\Manipulations */ |
||
14 | protected $manipulations; |
||
15 | |||
16 | /** @var */ |
||
17 | protected $imageDriver = 'gd'; |
||
18 | |||
19 | public static function load($pathToImage) |
||
20 | { |
||
21 | return new static($pathToImage); |
||
22 | } |
||
23 | |||
24 | public function __construct(string $pathToImage) |
||
30 | |||
31 | public function useImageDriver($imageDriver) |
||
35 | |||
36 | public function manipulate($manipulations) |
||
48 | |||
49 | public function __call($name, $arguments) |
||
59 | |||
60 | public function save($outputPath = '') |
||
71 | } |
||
72 |
This check looks for function calls that miss required arguments.