var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityDomain.php line 9

Open in your IDE?
  1. <?php
  2. namespace Proxies\__CG__\App\Entity;
  3. /**
  4. * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
  5. */
  6. class Domain extends \App\Entity\Domain implements \Doctrine\ORM\Proxy\Proxy
  7. {
  8. /**
  9. * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
  10. * three parameters, being respectively the proxy object to be initialized, the method that triggered the
  11. * initialization process and an array of ordered parameters that were passed to that method.
  12. *
  13. * @see \Doctrine\Common\Proxy\Proxy::__setInitializer
  14. */
  15. public $__initializer__;
  16. /**
  17. * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
  18. *
  19. * @see \Doctrine\Common\Proxy\Proxy::__setCloner
  20. */
  21. public $__cloner__;
  22. /**
  23. * @var boolean flag indicating if this object was already initialized
  24. *
  25. * @see \Doctrine\Persistence\Proxy::__isInitialized
  26. */
  27. public $__isInitialized__ = false;
  28. /**
  29. * @var array<string, null> properties to be lazy loaded, indexed by property name
  30. */
  31. public static $lazyPropertiesNames = array (
  32. );
  33. /**
  34. * @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
  35. *
  36. * @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
  37. */
  38. public static $lazyPropertiesDefaults = array (
  39. );
  40. public function __construct(?\Closure $initializer = null, ?\Closure $cloner = null)
  41. {
  42. $this->__initializer__ = $initializer;
  43. $this->__cloner__ = $cloner;
  44. }
  45. /**
  46. *
  47. * @return array
  48. */
  49. public function __sleep()
  50. {
  51. if ($this->__isInitialized__) {
  52. return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'courses', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'headOfDepartment', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'teachers'];
  53. }
  54. return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'courses', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'headOfDepartment', '' . "\0" . 'App\\Entity\\Domain' . "\0" . 'teachers'];
  55. }
  56. /**
  57. *
  58. */
  59. public function __wakeup()
  60. {
  61. if ( ! $this->__isInitialized__) {
  62. $this->__initializer__ = function (Domain $proxy) {
  63. $proxy->__setInitializer(null);
  64. $proxy->__setCloner(null);
  65. $existingProperties = get_object_vars($proxy);
  66. foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
  67. if ( ! array_key_exists($property, $existingProperties)) {
  68. $proxy->$property = $defaultValue;
  69. }
  70. }
  71. };
  72. }
  73. }
  74. /**
  75. *
  76. */
  77. public function __clone()
  78. {
  79. $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
  80. }
  81. /**
  82. * Forces initialization of the proxy
  83. */
  84. public function __load(): void
  85. {
  86. $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
  87. }
  88. /**
  89. * {@inheritDoc}
  90. * @internal generated method: use only when explicitly handling proxy specific loading logic
  91. */
  92. public function __isInitialized(): bool
  93. {
  94. return $this->__isInitialized__;
  95. }
  96. /**
  97. * {@inheritDoc}
  98. * @internal generated method: use only when explicitly handling proxy specific loading logic
  99. */
  100. public function __setInitialized($initialized): void
  101. {
  102. $this->__isInitialized__ = $initialized;
  103. }
  104. /**
  105. * {@inheritDoc}
  106. * @internal generated method: use only when explicitly handling proxy specific loading logic
  107. */
  108. public function __setInitializer(?\Closure $initializer = null): void
  109. {
  110. $this->__initializer__ = $initializer;
  111. }
  112. /**
  113. * {@inheritDoc}
  114. * @internal generated method: use only when explicitly handling proxy specific loading logic
  115. */
  116. public function __getInitializer(): ?\Closure
  117. {
  118. return $this->__initializer__;
  119. }
  120. /**
  121. * {@inheritDoc}
  122. * @internal generated method: use only when explicitly handling proxy specific loading logic
  123. */
  124. public function __setCloner(?\Closure $cloner = null): void
  125. {
  126. $this->__cloner__ = $cloner;
  127. }
  128. /**
  129. * {@inheritDoc}
  130. * @internal generated method: use only when explicitly handling proxy specific cloning logic
  131. */
  132. public function __getCloner(): ?\Closure
  133. {
  134. return $this->__cloner__;
  135. }
  136. /**
  137. * {@inheritDoc}
  138. * @internal generated method: use only when explicitly handling proxy specific loading logic
  139. * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  140. * @static
  141. */
  142. public function __getLazyProperties(): array
  143. {
  144. return self::$lazyPropertiesDefaults;
  145. }
  146. /**
  147. * {@inheritDoc}
  148. */
  149. public function getId(): ?int
  150. {
  151. if ($this->__isInitialized__ === false) {
  152. return (int) parent::getId();
  153. }
  154. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
  155. return parent::getId();
  156. }
  157. /**
  158. * {@inheritDoc}
  159. */
  160. public function getName(): ?string
  161. {
  162. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
  163. return parent::getName();
  164. }
  165. /**
  166. * {@inheritDoc}
  167. */
  168. public function setName(string $name): \App\Entity\Domain
  169. {
  170. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
  171. return parent::setName($name);
  172. }
  173. /**
  174. * {@inheritDoc}
  175. */
  176. public function __toString(): string
  177. {
  178. $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
  179. return parent::__toString();
  180. }
  181. /**
  182. * {@inheritDoc}
  183. */
  184. public function getCourses(): \Doctrine\Common\Collections\Collection
  185. {
  186. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCourses', []);
  187. return parent::getCourses();
  188. }
  189. /**
  190. * {@inheritDoc}
  191. */
  192. public function addCourse(\App\Entity\Course $course): \App\Entity\Domain
  193. {
  194. $this->__initializer__ && $this->__initializer__->__invoke($this, 'addCourse', [$course]);
  195. return parent::addCourse($course);
  196. }
  197. /**
  198. * {@inheritDoc}
  199. */
  200. public function removeCourse(\App\Entity\Course $course): \App\Entity\Domain
  201. {
  202. $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeCourse', [$course]);
  203. return parent::removeCourse($course);
  204. }
  205. /**
  206. * {@inheritDoc}
  207. */
  208. public function getTeachers(): \Doctrine\Common\Collections\Collection
  209. {
  210. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTeachers', []);
  211. return parent::getTeachers();
  212. }
  213. /**
  214. * {@inheritDoc}
  215. */
  216. public function addTeacher(\App\Entity\User $teacher): \App\Entity\Domain
  217. {
  218. $this->__initializer__ && $this->__initializer__->__invoke($this, 'addTeacher', [$teacher]);
  219. return parent::addTeacher($teacher);
  220. }
  221. /**
  222. * {@inheritDoc}
  223. */
  224. public function removeTeacher(\App\Entity\User $teacher): \App\Entity\Domain
  225. {
  226. $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeTeacher', [$teacher]);
  227. return parent::removeTeacher($teacher);
  228. }
  229. /**
  230. * {@inheritDoc}
  231. */
  232. public function getHeadOfDepartment(): ?\App\Entity\User
  233. {
  234. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getHeadOfDepartment', []);
  235. return parent::getHeadOfDepartment();
  236. }
  237. /**
  238. * {@inheritDoc}
  239. */
  240. public function setHeadOfDepartment(?\App\Entity\User $headOfDepartment): \App\Entity\Domain
  241. {
  242. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setHeadOfDepartment', [$headOfDepartment]);
  243. return parent::setHeadOfDepartment($headOfDepartment);
  244. }
  245. }