ModelInterface/Repository/RouteDocumentRepositoryInterface.php
<?php
namespace OpenOrchestra\ModelInterface\Repository;
use Doctrine\Common\Collections\Collection;
use OpenOrchestra\ModelInterface\Model\RouteDocumentInterface;
/**
* Interface RouteDocumentRepositoryInterface
*/
interface RouteDocumentRepositoryInterface
{
/**
* @return array|Collection
*/
public function findAll();
/**
* @param string $name
*
* @return RouteDocumentInterface
*/
public function findOneByName($name);
/**
* @param string $redirectionId
*/
public function removeByRedirectionId($redirectionId);
/**
* @param string $pathInfo
*
* @return Collection
*/
public function findByPathInfo($pathInfo);
/**
* @param array $nodeIds
* @param string $siteId
* @param string $language
*/
public function removeByNodeIdsSiteIdAndLanguage(array $nodeIds, $siteId, $language);
/**
* @param string $siteId
*/
public function removeBySiteId($siteId);
}