open-orchestra/open-orchestra-model-interface

View on GitHub
ModelInterface/Repository/RouteDocumentRepositoryInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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);
}