12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace JMS\Serializer\Tests\Fixtures;
- use JMS\Serializer\Annotation\SerializedName;
- use JMS\Serializer\Annotation\Type;
- class SimpleObject
- {
- /** @Type("string") */
- private $foo;
- /**
- * @SerializedName("moo")
- * @Type("string")
- */
- private $bar;
- /** @Type("string") */
- protected $camelCase = 'boo';
- public function __construct($foo, $bar)
- {
- $this->foo = $foo;
- $this->bar = $bar;
- }
- public function getFoo()
- {
- return $this->foo;
- }
- public function getBar()
- {
- return $this->bar;
- }
- }
|