Guilhem Niot dfff2476d8
Add @SerializedName support (#1636)
* Add `@SerializedName` support

* Also test `@SerializedName` on properties

* Fix tests with sf < 4.2

* Fix the tests

* Update the CHANGELOG
2020-05-30 18:08:25 +02:00

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)
{
}
}