skqr/hateoas

View on GitHub
JsonApi/Request/FilterInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @copyright 2014 Integ S.A.
 * @license http://opensource.org/licenses/MIT The MIT License (MIT)
 * @author Javier Lorenzana <javier.lorenzana@gointegro.com>
 */

namespace GoIntegro\Hateoas\JsonApi\Request;

// ORM.
use Doctrine\ORM\QueryBuilder;

interface FilterInterface
{
    /**
     * @param string $class
     * @return boolean
     * @see \Symfony\Component\Security\Core\Authorization\Voter
     */
    public function supportsClass($class);

    /**
     * @param QueryBuilder $qb
     * @param array $filters
     * @param string $alias
     * @return QueryBuilder
     */
    public function filter(QueryBuilder $qb, array $filters, $alias = 'e');
}