|
4 | 4 |
|
5 | 5 | use Embed\Http\Uri; |
6 | 6 | use Embed\Http\Response; |
| 7 | +use Embed\Http\ImageResponse; |
7 | 8 | use Embed\Http\DispatcherInterface; |
8 | 9 | use Embed\Bag; |
9 | 10 | use Embed\Embed; |
10 | 11 |
|
11 | 12 | /** |
12 | 13 | * Base class extended by all adapters. |
13 | | - * |
14 | | - * @property null|string $title |
15 | | - * @property null|string $description |
16 | | - * @property null|string $url |
17 | | - * @property null|string $type |
18 | | - * @property array $tags |
19 | | - * @property array $feeds |
20 | | - * @property array $images |
21 | | - * @property array $imagesUrls |
22 | | - * @property null|string $image |
23 | | - * @property null|int $imageWidth |
24 | | - * @property null|int $imageHeight |
25 | | - * @property null|string $code |
26 | | - * @property null|int $width |
27 | | - * @property null|int $height |
28 | | - * @property null|float $aspectRatio |
29 | | - * @property null|string $authorName |
30 | | - * @property null|string $authorUrl |
31 | | - * @property array $providerIcons |
32 | | - * @property array $providerIconsUrls |
33 | | - * @property null|string $providerIcon |
34 | | - * @property null|string $providerName |
35 | | - * @property null|string $providerUrl |
36 | | - * @property null|string $publishedTime |
37 | 14 | */ |
38 | 15 | abstract class Adapter |
39 | 16 | { |
@@ -575,7 +552,7 @@ private function dispatchImagesInfo($urls) |
575 | 552 | } |
576 | 553 |
|
577 | 554 | return array_map( |
578 | | - function ($response) { |
| 555 | + function (ImageResponse $response) { |
579 | 556 | return [ |
580 | 557 | 'url' => (string) $response->getUri(), |
581 | 558 | 'width' => $response->getWidth(), |
|
0 commit comments