NelmioApiDocBundle/Tests/Functional/Entity/SymfonyConstraintsWithValidationGroups.php

35 lines
706 B
PHP
Raw Normal View History

<?php
/*
* This file is part of the NelmioApiDocBundle package.
*
* (c) Nelmio
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity;
use Symfony\Component\Serializer\Annotation\Groups;
2021-11-06 07:35:50 -05:00
use Symfony\Component\Validator\Constraints as Assert;
class SymfonyConstraintsWithValidationGroups
{
/**
* @var int
*
* @Groups("test")
* @Assert\NotBlank(groups={"test"})
* @Assert\Range(min=1, max=100)
*/
public $property;
/**
* @var int
*
* @Assert\Range(min=1, max=100)
*/
public $propertyInDefaultGroup;
}