Total Complexity | 8 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | trait ImageShortcodes |
||
14 | { |
||
15 | /** |
||
16 | * @return Media |
||
17 | */ |
||
18 | public function getImage() |
||
19 | { |
||
20 | return $this->getMedia('images')->getDefaultMedia(); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return Collection|Media[] |
||
25 | */ |
||
26 | public function getImages() |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return Media |
||
33 | */ |
||
34 | public function getLogo() |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return Collection|Media[] |
||
41 | */ |
||
42 | public function getLogos() |
||
43 | { |
||
44 | return $this->getMedia('logos'); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function hasLogo() |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return Media |
||
57 | */ |
||
58 | public function getCover() |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return Collection |
||
65 | */ |
||
66 | public function getCovers() |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function hasCover() |
||
77 | } |
||
78 | } |
||
79 |