var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityCard.php line 136

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 Card extends \App\Entity\Card 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\\Card' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'user_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'pool_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'reference_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'reference_version', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'copy_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'copy_version', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'task', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'solution', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'classification_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'version', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'correct', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'correct2', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'skilled', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'delflag', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'created_date', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'modify_date'];
  53. }
  54. return ['__isInitialized__', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'user_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'pool_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'reference_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'reference_version', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'copy_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'copy_version', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'task', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'solution', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'classification_id', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'version', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'correct', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'correct2', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'skilled', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'delflag', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'created_date', '' . "\0" . 'App\\Entity\\Card' . "\0" . 'modify_date'];
  55. }
  56. /**
  57. *
  58. */
  59. public function __wakeup()
  60. {
  61. if ( ! $this->__isInitialized__) {
  62. $this->__initializer__ = function (Card $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 getUserId(): ?int
  161. {
  162. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserId', []);
  163. return parent::getUserId();
  164. }
  165. /**
  166. * {@inheritDoc}
  167. */
  168. public function setUserId(int $user_id): \App\Entity\Card
  169. {
  170. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUserId', [$user_id]);
  171. return parent::setUserId($user_id);
  172. }
  173. /**
  174. * {@inheritDoc}
  175. */
  176. public function getPoolId(): ?int
  177. {
  178. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPoolId', []);
  179. return parent::getPoolId();
  180. }
  181. /**
  182. * {@inheritDoc}
  183. */
  184. public function setPoolId(int $pool_id): \App\Entity\Card
  185. {
  186. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPoolId', [$pool_id]);
  187. return parent::setPoolId($pool_id);
  188. }
  189. /**
  190. * {@inheritDoc}
  191. */
  192. public function getReferenceId(): ?int
  193. {
  194. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getReferenceId', []);
  195. return parent::getReferenceId();
  196. }
  197. /**
  198. * {@inheritDoc}
  199. */
  200. public function setReferenceId(int $reference_id): \App\Entity\Card
  201. {
  202. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setReferenceId', [$reference_id]);
  203. return parent::setReferenceId($reference_id);
  204. }
  205. /**
  206. * {@inheritDoc}
  207. */
  208. public function getCopyId(): ?int
  209. {
  210. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCopyId', []);
  211. return parent::getCopyId();
  212. }
  213. /**
  214. * {@inheritDoc}
  215. */
  216. public function setCopyId(int $copy_id): \App\Entity\Card
  217. {
  218. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCopyId', [$copy_id]);
  219. return parent::setCopyId($copy_id);
  220. }
  221. /**
  222. * {@inheritDoc}
  223. */
  224. public function getTask(): ?string
  225. {
  226. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTask', []);
  227. return parent::getTask();
  228. }
  229. /**
  230. * {@inheritDoc}
  231. */
  232. public function setTask(string $task): \App\Entity\Card
  233. {
  234. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setTask', [$task]);
  235. return parent::setTask($task);
  236. }
  237. /**
  238. * {@inheritDoc}
  239. */
  240. public function getSolution(): ?string
  241. {
  242. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSolution', []);
  243. return parent::getSolution();
  244. }
  245. /**
  246. * {@inheritDoc}
  247. */
  248. public function setSolution(string $solution): \App\Entity\Card
  249. {
  250. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSolution', [$solution]);
  251. return parent::setSolution($solution);
  252. }
  253. /**
  254. * {@inheritDoc}
  255. */
  256. public function getCorrect(): ?int
  257. {
  258. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCorrect', []);
  259. return parent::getCorrect();
  260. }
  261. /**
  262. * {@inheritDoc}
  263. */
  264. public function setCorrect(int $correct): \App\Entity\Card
  265. {
  266. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCorrect', [$correct]);
  267. return parent::setCorrect($correct);
  268. }
  269. /**
  270. * {@inheritDoc}
  271. */
  272. public function getCorrect2(): ?int
  273. {
  274. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCorrect2', []);
  275. return parent::getCorrect2();
  276. }
  277. /**
  278. * {@inheritDoc}
  279. */
  280. public function setCorrect2(int $correct2): \App\Entity\Card
  281. {
  282. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCorrect2', [$correct2]);
  283. return parent::setCorrect2($correct2);
  284. }
  285. /**
  286. * {@inheritDoc}
  287. */
  288. public function getSkilled(): ?int
  289. {
  290. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSkilled', []);
  291. return parent::getSkilled();
  292. }
  293. /**
  294. * {@inheritDoc}
  295. */
  296. public function setSkilled(int $skilled): \App\Entity\Card
  297. {
  298. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSkilled', [$skilled]);
  299. return parent::setSkilled($skilled);
  300. }
  301. /**
  302. * {@inheritDoc}
  303. */
  304. public function getCreatedDate(): ?\DateTimeInterface
  305. {
  306. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedDate', []);
  307. return parent::getCreatedDate();
  308. }
  309. /**
  310. * {@inheritDoc}
  311. */
  312. public function setCreatedDate(\DateTimeInterface $created_date): \App\Entity\Card
  313. {
  314. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedDate', [$created_date]);
  315. return parent::setCreatedDate($created_date);
  316. }
  317. /**
  318. * {@inheritDoc}
  319. */
  320. public function getModifyDate(): ?\DateTimeInterface
  321. {
  322. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getModifyDate', []);
  323. return parent::getModifyDate();
  324. }
  325. /**
  326. * {@inheritDoc}
  327. */
  328. public function setModifyDate(\DateTimeInterface $modify_date): \App\Entity\Card
  329. {
  330. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setModifyDate', [$modify_date]);
  331. return parent::setModifyDate($modify_date);
  332. }
  333. /**
  334. * {@inheritDoc}
  335. */
  336. public function getClassificationId(): ?int
  337. {
  338. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getClassificationId', []);
  339. return parent::getClassificationId();
  340. }
  341. /**
  342. * {@inheritDoc}
  343. */
  344. public function setClassificationId(int $classification_id): \App\Entity\Card
  345. {
  346. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setClassificationId', [$classification_id]);
  347. return parent::setClassificationId($classification_id);
  348. }
  349. /**
  350. * {@inheritDoc}
  351. */
  352. public function getDelflag(): ?int
  353. {
  354. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDelflag', []);
  355. return parent::getDelflag();
  356. }
  357. /**
  358. * {@inheritDoc}
  359. */
  360. public function setDelflag(int $delflag): \App\Entity\Card
  361. {
  362. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDelflag', [$delflag]);
  363. return parent::setDelflag($delflag);
  364. }
  365. /**
  366. * {@inheritDoc}
  367. */
  368. public function getVersion(): ?int
  369. {
  370. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getVersion', []);
  371. return parent::getVersion();
  372. }
  373. /**
  374. * {@inheritDoc}
  375. */
  376. public function setVersion(int $version): \App\Entity\Card
  377. {
  378. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVersion', [$version]);
  379. return parent::setVersion($version);
  380. }
  381. /**
  382. * {@inheritDoc}
  383. */
  384. public function getReferenceVersion(): ?int
  385. {
  386. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getReferenceVersion', []);
  387. return parent::getReferenceVersion();
  388. }
  389. /**
  390. * {@inheritDoc}
  391. */
  392. public function setReferenceVersion(int $reference_version): \App\Entity\Card
  393. {
  394. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setReferenceVersion', [$reference_version]);
  395. return parent::setReferenceVersion($reference_version);
  396. }
  397. /**
  398. * {@inheritDoc}
  399. */
  400. public function getCopyVersion(): ?int
  401. {
  402. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCopyVersion', []);
  403. return parent::getCopyVersion();
  404. }
  405. /**
  406. * {@inheritDoc}
  407. */
  408. public function setCopyVersion(int $copy_version): \App\Entity\Card
  409. {
  410. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCopyVersion', [$copy_version]);
  411. return parent::setCopyVersion($copy_version);
  412. }
  413. }