private function getBestPhoto(Description $description)
    {
        $bestPhotoDescription = $description->getOptionalProperty('bestPhoto');

        if ($bestPhotoDescription instanceof Description) {
            return $this->photoFactory->create($bestPhotoDescription);
        }

        return null;
    }
private function getBestPhoto(Description $description)
    {
        $bestPhotoDescription = $description->getOptionalProperty('bestPhoto');

        if ($bestPhotoDescription instanceof Description) {
            return $this->photoFactory->create($bestPhotoDescription);
        }

        return null;
    }
private function getBestPhoto ( Description $ description ) { $ bestPhotoDescription = $ description -> getOptionalProperty ( 'bestPhoto' ) ; if ( $ bestPhotoDescription instanceof Description ) { return $ this -> photoFactory -> create ( $ bestPhotoDescription ) ; } return null ; }
Get best photo.

@param Description $description The venue details description.

@return Photo|null
Get best photo .