src/Criteria/NewsCriteria.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Criteria;
  3. use Symfony\Component\Validator\Constraints as Assert;
  4. class NewsCriteria extends BasicCriteria
  5. {
  6. /**
  7. * @Assert\Sequentially({
  8. * @Assert\Type(type={"boolean"})
  9. * })
  10. *
  11. * @var bool
  12. */
  13. public $isPublished = true;
  14. public function __construct()
  15. {
  16. $this->limit = 8;
  17. }
  18. }