<?php
/**
* THIS IS A SERVICE CONTRACT
*/
namespace Namespace\Custom\Api;
/**
* @api
* Interface CustomRepositoryInterface
* @package Namespace\Custom\api
*/
interface CustomRepositoryInterface
{
/**
* @param \Namespace\Custom\Api\Data\CustomInterface $custom
* @return int
*/
public function save(\Namespace\Custom\Api\Data\CustomInterface $custom);
/**
* @param $customId
* @return \Namespace\Custom\Api\Data\CustomInterface int
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function getById($customId);
/**
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \Namespace\Custom\Api\Data\CustomSearchResultsInterface
*/
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
/**
* @param int $customId
* @return bool
*/
public function delete($customId);
/**
* @param int $customId
* @return string
*/
public function getAssociatedProductsIds($customId);