Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait HasThinkImage |
||
8 | { |
||
9 | /** |
||
10 | * Resolved images. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected array $thinkImages = []; |
||
15 | |||
16 | /** |
||
17 | * Map: field -> driver |
||
18 | */ |
||
19 | abstract public function thinkImagesMap(): array; |
||
20 | |||
21 | /** |
||
22 | * Image manager. |
||
23 | * |
||
24 | * @param string $field |
||
25 | * |
||
26 | * @return ThinkImage|null |
||
27 | * @throws SimpleImageManagerException |
||
28 | */ |
||
29 | 6 | public function thinkImage(string $field): ThinkImage |
|
42 |