* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Addon; interface AddonRepositoryInterface { /** * @param string $name theme name * * @return AddonInterface the theme or module */ public function getInstanceByName($name); /** * @param AddonListFilter $filter * * @return AddonInterface[] retrieve a list of addons, regarding the $filter used */ public function getFilteredList(AddonListFilter $filter); /** * @return AddonInterface[] retrieve a list of addons, regardless any $filter */ public function getList(); }