1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation\SerializedName; 8use JMS\Serializer\Annotation\Type; 9 10class Author 11{ 12 /** 13 * @Type("string") 14 * @SerializedName("full_name") 15 */ 16 private $name; 17 18 public function __construct($name) 19 { 20 $this->name = $name; 21 } 22 23 public function getName() 24 { 25 return $this->name; 26 } 27} 28