1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use Doctrine\Common\Persistence\Proxy; 8 9class SimpleObjectProxy extends SimpleObject implements Proxy 10{ 11 public $__isInitialized__ = false; 12 13 private $baz = 'baz'; 14 15 public function __load() 16 { 17 if (!$this->__isInitialized__) { 18 $this->camelCase = 'proxy-boo'; 19 $this->__isInitialized__ = true; 20 } 21 } 22 23 public function __isInitialized() 24 { 25 return $this->__isInitialized__; 26 } 27} 28