mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Updated deprecated MinLength assertion to Length Updated array of object parsing Handled deprecated calls because of using AbstractType (not sure if it is the best way, though)
31 lines
520 B
PHP
31 lines
520 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the NelmioApiDocBundle.
|
|
*
|
|
* (c) Nelmio <hello@nelm.io>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Model;
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
class Test
|
|
{
|
|
/**
|
|
* @Assert\Length(min="foo");
|
|
* @Assert\NotBlank
|
|
*/
|
|
public $a;
|
|
|
|
/**
|
|
* @Assert\Type("DateTime");
|
|
*/
|
|
public $b;
|
|
|
|
public $c;
|
|
}
|