2012-04-13 14:11:54 +02:00
|
|
|
<?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
|
|
|
|
{
|
|
|
|
/**
|
2013-02-11 14:42:17 +01:00
|
|
|
* @Assert\Length(min="foo");
|
2012-06-20 23:19:34 +02:00
|
|
|
* @Assert\NotBlank
|
2013-11-07 14:11:09 +01:00
|
|
|
* @Assert\Type("string")
|
2012-04-13 14:11:54 +02:00
|
|
|
*/
|
|
|
|
public $a;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Assert\Type("DateTime");
|
|
|
|
*/
|
|
|
|
public $b;
|
2012-05-23 00:20:03 +02:00
|
|
|
|
|
|
|
public $c;
|
2012-04-13 14:11:54 +02:00
|
|
|
}
|