open-orchestra/open-orchestra-model-interface

View on GitHub
ModelInterface/Repository/StatusableRepositoryInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\ModelInterface\Repository;

use OpenOrchestra\ModelInterface\Model\StatusableInterface;

/**
 * Interface StatusableRepositoryInterface
 */
interface StatusableRepositoryInterface
{
    /**
     * @param string $elementId
     * @param string $language
     * @param string $siteId
     *
     * @return StatusableInterface
     */
    public function findOnePublished($elementId, $language, $siteId);

    /**
     * @param StatusableInterface $element
     *
     * @return array
     */
    public function findPublished(StatusableInterface $element);
}