1 | <?php |
||
10 | class AttacherManager |
||
11 | { |
||
12 | protected $processing_styles_routine; |
||
13 | protected $base_url; |
||
14 | protected $path_to_save; |
||
15 | |||
16 | public function __construct() |
||
20 | |||
21 | /** |
||
22 | * @return bool |
||
23 | */ |
||
24 | public function writeImage(AttacherImageContract $attacherImage) |
||
42 | |||
43 | /** |
||
44 | * @param AttacherImageContract $attacherImage |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function deleteImages(AttacherImageContract $attacherImage, $style = NULL) |
||
53 | |||
54 | /** |
||
55 | * @return FileManager |
||
56 | */ |
||
57 | public function getFileManager() |
||
61 | |||
62 | /** |
||
63 | * @return ImageProcessor |
||
64 | */ |
||
65 | public function getImageProcessor() |
||
69 | |||
70 | /** |
||
71 | * @return FilePathManager |
||
72 | */ |
||
73 | public function getFilePathManager() |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | public function getProcessingStylesRoutines() |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getBaseUrl() |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getPathToSave() |
||
101 | } |
||
102 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: