2012-08-07 17:50:58 -04: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.
|
|
|
|
*/
|
|
|
|
|
2012-08-07 17:50:58 -04:00
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Fixtures\Model;
|
|
|
|
|
2012-12-03 16:32:15 +01:00
|
|
|
use JMS\Serializer\Annotation as JMS;
|
2012-08-07 17:50:58 -04:00
|
|
|
|
|
|
|
class JmsTest
|
|
|
|
{
|
|
|
|
public $nothing;
|
2012-08-07 21:57:36 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @JMS\Type("string");
|
|
|
|
*/
|
|
|
|
public $foo;
|
|
|
|
|
2012-08-07 17:50:58 -04:00
|
|
|
/**
|
|
|
|
* @JMS\Type("DateTime");
|
2024-06-18 00:19:53 +03:00
|
|
|
* @JMS\ReadOnlyProperty
|
2012-08-07 17:50:58 -04:00
|
|
|
*/
|
|
|
|
public $bar;
|
2012-08-07 21:57:36 -04:00
|
|
|
|
2012-08-07 17:50:58 -04:00
|
|
|
/**
|
|
|
|
* @JMS\Type("double");
|
|
|
|
* @JMS\SerializedName("number");
|
|
|
|
*/
|
|
|
|
public $baz;
|
2012-08-07 21:57:36 -04:00
|
|
|
|
2012-08-07 17:50:58 -04:00
|
|
|
/**
|
|
|
|
* @JMS\Type("array");
|
|
|
|
*/
|
|
|
|
public $arr;
|
2012-08-24 11:12:36 -04:00
|
|
|
|
2012-08-24 11:10:25 -04:00
|
|
|
/**
|
|
|
|
* @JMS\Type("Nelmio\ApiDocBundle\Tests\Fixtures\Model\JmsNested");
|
|
|
|
*/
|
|
|
|
public $nested;
|
2012-08-24 11:12:36 -04:00
|
|
|
|
2012-08-24 11:10:25 -04:00
|
|
|
/**
|
|
|
|
* @JMS\Type("array<Nelmio\ApiDocBundle\Tests\Fixtures\Model\JmsNested>");
|
|
|
|
*/
|
|
|
|
public $nestedArray;
|
2012-08-07 21:57:36 -04:00
|
|
|
|
2014-08-08 12:49:24 +02:00
|
|
|
/**
|
|
|
|
* @JMS\Groups("hidden")
|
|
|
|
*/
|
|
|
|
public $hidden;
|
2012-08-07 17:50:58 -04:00
|
|
|
}
|