2013-11-07 13:30:13 +01:00
|
|
|
<?php
|
|
|
|
|
2015-11-10 01:27:09 +01:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2013-11-07 13:30:13 +01:00
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Model;
|
|
|
|
|
|
|
|
use JMS\Serializer\Annotation as JMS;
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
|
|
|
|
class MultipleTest
|
|
|
|
{
|
|
|
|
public $nothing;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Assert\Type("DateTime")
|
|
|
|
*/
|
|
|
|
public $bar;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @JMS\Type("DateTime")
|
2024-10-01 15:54:04 +03:00
|
|
|
*
|
2013-11-07 13:30:13 +01:00
|
|
|
* @JMS\SerializedName("number");
|
|
|
|
*/
|
|
|
|
public $baz;
|
|
|
|
|
2013-11-07 16:17:23 +01:00
|
|
|
/**
|
|
|
|
* @JMS\Type("Nelmio\ApiDocBundle\Tests\Fixtures\Model\Test")
|
|
|
|
*/
|
|
|
|
public $related;
|
|
|
|
|
2013-11-07 14:11:09 +01:00
|
|
|
/**
|
|
|
|
* @Assert\Type(type="array")
|
2024-10-01 15:54:04 +03:00
|
|
|
*
|
2013-11-07 14:11:09 +01:00
|
|
|
* @Assert\All({
|
2024-10-01 15:54:04 +03:00
|
|
|
*
|
2013-11-07 14:11:09 +01:00
|
|
|
* @Assert\Type(type="Test")
|
|
|
|
* })
|
|
|
|
*/
|
|
|
|
public $objects;
|
2013-11-07 13:30:13 +01:00
|
|
|
}
|