1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation\Type; 8 9class ObjectWithObjectProperty 10{ 11 /** 12 * @Type("string") 13 */ 14 private $foo; 15 16 /** 17 * @Type("JMS\Serializer\Tests\Fixtures\Author") 18 */ 19 private $author; 20 21 /** 22 * @return string 23 */ 24 public function getFoo() 25 { 26 return $this->foo; 27 } 28 29 /** 30 * @return Author 31 */ 32 public function getAuthor() 33 { 34 return $this->author; 35 } 36} 37