src/Adapter/YandexAdapter.php
private function mappingImage(Image $image, array $data)
    {
        if (isset($data['summary'])) {
            $image->setDescription($data['summary']);
        }
        if (isset($data['title'])) {
            $image->setTitle($data['title'])
                ->setPublishAt(new \DateTime($data['published']))
                ->setUpdateAt(new \DateTime($data['updated']))
                ->setTags(array_keys($data['tags']));
            foreach ($data['img'] as $value) {
                $image->addMeta(new Meta($value['href'], $value['width'], $value['height']));
            }
        }

        return $image;
    }
private function mappingImage(Image $image, array $data)
    {
        if (isset($data['summary'])) {
            $image->setDescription($data['summary']);
        }
        if (isset($data['title'])) {
            $image->setTitle($data['title'])
                ->setPublishAt(new \DateTime($data['published']))
                ->setUpdateAt(new \DateTime($data['updated']))
                ->setTags(array_keys($data['tags']));
            foreach ($data['img'] as $value) {
                $image->addMeta(new Meta($value['href'], $value['width'], $value['height']));
            }
        }

        return $image;
    }
mapping Image

@param Image $image
@param array $data

@return Image