1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures\MaxDepth; 6 7use JMS\Serializer\Annotation as Serializer; 8 9class Gh236Foo 10{ 11 /** 12 * @Serializer\MaxDepth(1) 13 */ 14 public $a; 15 16 public function __construct() 17 { 18 $this->a = new Gh236Bar(); 19 $this->a->inner = new Gh236Bar(); 20 } 21} 22