public function getGallery(int $galleryId = null)
    {
        $mediaCategory = ($this->container->dataMapper)('MediaCategoryMapper');

        return $mediaCategory->findMediaByCategoryId($galleryId);
    }
public function getGallery(int $galleryId = null)
    {
        $mediaCategory = ($this->container->dataMapper)('MediaCategoryMapper');

        return $mediaCategory->findMediaByCategoryId($galleryId);
    }
public function getGallery ( int $ galleryId = null ) { $ mediaCategory = ( $ this -> container -> dataMapper ) ( 'MediaCategoryMapper' ) ; return $ mediaCategory -> findMediaByCategoryId ( $ galleryId ) ; }
Get Gallery by ID

@param int $galleryId
@return mixed
Get Gallery by ID