/** * Get album cover - album first image URL * * @param int $albumId * @return string */ public function getAlbumCover($albumId) { if (!$albumId) { return null; } $photo = $this->photoDao->getFirstPhoto($albumId); return $photo ? $this->photoDao->getPhotoUrl($photo->id, $photo->hash, true) : null; }