QueryBuilder.php 613 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Tests\Filter\ORM;
  11. use Sonata\AdminBundle\Filter\ORM\Filter;
  12. class QueryBuilder
  13. {
  14. public $parameters = array();
  15. public $query = array();
  16. public function setParameter($name, $value)
  17. {
  18. $this->parameters[$name] = $value;
  19. }
  20. public function andWhere($query)
  21. {
  22. $this->query[] = $query;
  23. }
  24. }