2012-08-24 11:10:25 -04:00
|
|
|
<?php
|
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Model;
|
|
|
|
|
2012-12-03 16:32:15 +01:00
|
|
|
use JMS\Serializer\Annotation as JMS;
|
2012-08-24 11:10:25 -04:00
|
|
|
|
|
|
|
class JmsNested
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @JMS\Type("DateTime");
|
|
|
|
* @JMS\ReadOnly
|
|
|
|
*/
|
|
|
|
public $foo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @JMS\Type("string");
|
|
|
|
*/
|
|
|
|
public $bar;
|
2012-08-24 11:12:36 -04:00
|
|
|
|
2012-08-24 14:34:48 -04:00
|
|
|
/**
|
|
|
|
* Epic description.
|
|
|
|
*
|
2012-08-31 14:57:42 -04:00
|
|
|
* With multiple lines.
|
|
|
|
*
|
2012-08-24 14:34:48 -04:00
|
|
|
* @JMS\Type("array<integer>")
|
|
|
|
*/
|
|
|
|
public $baz;
|
|
|
|
|
2012-12-20 10:12:50 +01:00
|
|
|
/**
|
|
|
|
* @JMS\Type("Nelmio\ApiDocBundle\Tests\Fixtures\Model\JmsNested");
|
|
|
|
*/
|
|
|
|
public $circular;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @JMS\Type("Nelmio\ApiDocBundle\Tests\Fixtures\Model\JmsTest");
|
|
|
|
*/
|
|
|
|
public $parent;
|
|
|
|
|
2013-04-24 22:28:46 +02:00
|
|
|
/**
|
|
|
|
* @Jms\Type("string")
|
|
|
|
* @Jms\Since("0.2")
|
|
|
|
*/
|
|
|
|
public $since;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Jms\Type("string")
|
|
|
|
* @Jms\Until("0.3")
|
|
|
|
*/
|
|
|
|
public $until;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Jms\Type("string")
|
|
|
|
* @Jms\Since("0.4")
|
|
|
|
* @Jms\Until("0.5")
|
|
|
|
*/
|
|
|
|
public $sinceAndUntil;
|
2012-08-24 11:10:25 -04:00
|
|
|
}
|