MenaraSolutions/geographer

View on GitHub
src/Contracts/RepositoryInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace MenaraSolutions\Geographer\Contracts;

/**
 * Interface RepositoryInterface
 * @package MenaraSolutions\Geographer\Contracts
 */
interface RepositoryInterface
{
    /**
     * @param string $class
     * @param array $params
     * @return array
     */
    public function getData($class, array $params);

    /**
     * @param IdentifiableInterface $subject
     * @param $language
     * @return array
     */
    public function getTranslations(IdentifiableInterface $subject, $language);

    /**
     * @param $id
     * @param $class
     * @return mixed
     */
    public function indexSearch($id, $class);
}