@@ -150,8 +150,8 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * Sets the value of uri. |
152 | 152 | * |
153 | - * @param string $name $uri the uri |
|
154 | 153 | * |
154 | + * @param string $uri |
|
155 | 155 | * @return self |
156 | 156 | */ |
157 | 157 | public function setUri($uri) |
@@ -174,8 +174,8 @@ discard block |
||
174 | 174 | /** |
175 | 175 | * Sets the value of secretKey. |
176 | 176 | * |
177 | - * @param string $name $secretKey the secret key |
|
178 | 177 | * |
178 | + * @param string $secretKey |
|
179 | 179 | * @return self |
180 | 180 | */ |
181 | 181 | public function setSecretKey($secretKey) |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | /** |
199 | 199 | * Sets the value of mime. |
200 | 200 | * |
201 | - * @param string $name $mime the mime |
|
202 | 201 | * |
202 | + * @param string|null $mime |
|
203 | 203 | * @return self |
204 | 204 | */ |
205 | 205 | public function setMime($mime) |
@@ -222,8 +222,8 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Sets the value of lifetime. |
224 | 224 | * |
225 | - * @param string $label $lifetime the lifetime |
|
226 | 225 | * |
226 | + * @param null|\DateTime $lifetime |
|
227 | 227 | * @return self |
228 | 228 | */ |
229 | 229 | public function setLifetime($lifetime) |
@@ -88,6 +88,9 @@ discard block |
||
88 | 88 | return $url; |
89 | 89 | } |
90 | 90 | |
91 | + /** |
|
92 | + * @param string $url |
|
93 | + */ |
|
91 | 94 | protected function downloadMedia($url, $ext) |
92 | 95 | { |
93 | 96 | $filepath = sys_get_temp_dir() . '/' . uniqid() . '.' . $ext; |
@@ -102,6 +105,9 @@ discard block |
||
102 | 105 | return new File($filepath, 'random'); |
103 | 106 | } |
104 | 107 | |
108 | + /** |
|
109 | + * @param string $key |
|
110 | + */ |
|
105 | 111 | protected function fetchFromCache($key) |
106 | 112 | { |
107 | 113 | $fs = new Filesystem(); |
@@ -130,6 +136,9 @@ discard block |
||
130 | 136 | } |
131 | 137 | } |
132 | 138 | |
139 | + /** |
|
140 | + * @param string $key |
|
141 | + */ |
|
133 | 142 | protected function storeInCache($key, File $file) |
134 | 143 | { |
135 | 144 | $fs = new Filesystem(); |
@@ -21,6 +21,10 @@ |
||
21 | 21 | private $class; |
22 | 22 | private $multiple; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $class |
|
26 | + * @param string $property |
|
27 | + */ |
|
24 | 28 | public function __construct(EntityManager $em, $class, $property, $queryBuilder, $multiple) |
25 | 29 | { |
26 | 30 | if (!(null === $queryBuilder || $queryBuilder instanceof QueryBuilder || $queryBuilder instanceof \Closure)) { |
@@ -63,6 +63,9 @@ |
||
63 | 63 | return (array_key_exists($mime, $this->previewIcon)) ? $this->previewIcon[$mime] : $this->previewIcon['unknown']; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param boolean $isIcon |
|
68 | + */ |
|
66 | 69 | protected function generatePath($isIcon, $str) |
67 | 70 | { |
68 | 71 | if ($isIcon === true) { |