src/Adapter/YandexAdapter.php
private function setGallery(array $data, Gallery $album)
    {
        if (isset($data['title'])) {
            $album->setName($data['title'])
                ->setCount(0)
                ->setUpdatedAt(new \DateTime($data['updated']));
            if (isset($data['imageCount'])) {
                $album->setCount($data['imageCount']);
            }
            if (isset($data['img'])) {
                $this->setListCover($data['img'], $album);
            }
        }

        return $album;
    }
private function setGallery(array $data, Gallery $album)
    {
        if (isset($data['title'])) {
            $album->setName($data['title'])
                ->setCount(0)
                ->setUpdatedAt(new \DateTime($data['updated']));
            if (isset($data['imageCount'])) {
                $album->setCount($data['imageCount']);
            }
            if (isset($data['img'])) {
                $this->setListCover($data['img'], $album);
            }
        }

        return $album;
    }
set Gallery

@param  array   $data album
@param  Gallery $album

@return Gallery