mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
dfff2476d8
* Add `@SerializedName` support * Also test `@SerializedName` on properties * Fix tests with sf < 4.2 * Fix the tests * Update the CHANGELOG
37 lines
674 B
PHP
37 lines
674 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
*
|
|
* (c) Nelmio
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Functional\EntityExcluded;
|
|
|
|
use Symfony\Component\Serializer\Annotation\SerializedName;
|
|
|
|
/**
|
|
* @author Guilhem N. <guilhem.niot@gmail.com>
|
|
*/
|
|
class SerializedNameEnt
|
|
{
|
|
/**
|
|
* @SerializedName("notfoo")
|
|
*
|
|
* @var string
|
|
*/
|
|
public $foo;
|
|
|
|
/**
|
|
* Tests serialized name feature.
|
|
*
|
|
* @SerializedName("notwhatyouthink")
|
|
*/
|
|
public function setBar(string $bar)
|
|
{
|
|
}
|
|
}
|