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