1234567891011121314151617181920212223242526272829 |
- <?php
- namespace JMS\Serializer\Tests\Fixtures;
- use JMS\Serializer\Annotation as Serializer;
- class ObjectWithEmptyArrayAndHash
- {
- /**
- * @Serializer\Type("array<string,string>")
- * @Serializer\SkipWhenEmpty()
- */
- private $hash = array();
- /**
- * @Serializer\Type("array<string>")
- * @Serializer\SkipWhenEmpty()
- */
- private $array = array();
- /**
- * @Serializer\SkipWhenEmpty()
- */
- private $object = array();
- public function __construct()
- {
- $this->object = new InlineChildEmpty();
- }
- }
|