ObjectWithNullProperty.php 353 B

12345678910111213141516171819202122
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Type;
  4. class ObjectWithNullProperty extends SimpleObject
  5. {
  6. /**
  7. * @var null
  8. * @Type("string")
  9. */
  10. private $nullProperty = null;
  11. /**
  12. * @return null
  13. */
  14. public function getNullProperty()
  15. {
  16. return $this->nullProperty;
  17. }
  18. }