123456789101112131415161718192021222324252627 |
- <?php
- namespace JMS\Serializer\Tests\Fixtures;
- use JMS\Serializer\Annotation\SerializedName;
- use JMS\Serializer\Annotation\Type;
- class SimpleObjectWithStaticProp
- {
- /** @Type("string") */
- private static $foo;
- /**
- * @SerializedName("moo")
- * @Type("string")
- */
- private static $bar;
- /** @Type("string") */
- protected static $camelCase = 'boo';
- public function __construct($foo, $bar)
- {
- self::$foo = $foo;
- self::$bar = $bar;
- }
- }
|