protected function getPhotos($galleryId)
    {
        if (! is_null($ids = $this->fetchIds($galleryId))) {
            return array_map([$this, 'getPhoto'], $ids);
        }
    }
protected function getPhotos($galleryId)
    {
        if (! is_null($ids = $this->fetchIds($galleryId))) {
            return array_map([$this, 'getPhoto'], $ids);
        }
    }
protected function getPhotos ( $ galleryId ) { if ( ! is_null ( $ ids = $ this -> fetchIds ( $ galleryId ) ) ) { return array_map ( [ $ this , 'getPhoto' ] , $ ids ) ; } }
Returns all photo currently available in a gallery.

@return array|null
Returns all photo currently available in a gallery .