1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation as Serializer; 8 9class ObjectWithTypedArraySetter 10{ 11 /** 12 * @Serializer\Type("array<string>") 13 * @Serializer\AccessType(type="public_method") 14 */ 15 private $empty = []; 16 17 public function setEmpty(array $empty): void 18 { 19 $this->empty = $empty; 20 } 21 22 public function getEmpty(): array 23 { 24 return $this->empty; 25 } 26} 27