mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
b603381139
2. Up min Symfony verion to 5.0. Adopt code to sf 5.0+ 3. Local env to run tests 4. Repare tests
68 lines
1.1 KiB
PHP
68 lines
1.1 KiB
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 JMS\Serializer\Annotation as JMS;
|
|
|
|
class JmsNested
|
|
{
|
|
|
|
/**
|
|
* @JMS\Type("DateTime");
|
|
* @JMS\ReadOnlyProperty
|
|
*/
|
|
public $foo;
|
|
|
|
/**
|
|
* @JMS\Type("string");
|
|
*/
|
|
public $bar = 'baz';
|
|
|
|
/**
|
|
* Epic description.
|
|
*
|
|
* With multiple lines.
|
|
*
|
|
* @JMS\Type("array<integer>")
|
|
*/
|
|
public $baz;
|
|
|
|
/**
|
|
* @JMS\Type("Nelmio\ApiDocBundle\Tests\Fixtures\Model\JmsNested");
|
|
*/
|
|
public $circular;
|
|
|
|
/**
|
|
* @JMS\Type("Nelmio\ApiDocBundle\Tests\Fixtures\Model\JmsTest");
|
|
*/
|
|
public $parent;
|
|
|
|
/**
|
|
* @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;
|
|
}
|