var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityManufacturer.php line 214

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 Manufacturer extends \App\Entity\Manufacturer 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__', 'tranlatedEntity', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'image', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'dateAdded', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'lastModified', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'status', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'order', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'descriptions', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'countryRestrictions', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'lockedPrice', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'welcome', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'export', 'languageId', 'currentLocale'];
  53. }
  54. return ['__isInitialized__', 'tranlatedEntity', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'id', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'name', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'image', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'dateAdded', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'lastModified', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'status', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'order', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'descriptions', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'countryRestrictions', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'lockedPrice', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'welcome', '' . "\0" . 'App\\Entity\\Manufacturer' . "\0" . 'export', 'languageId', 'currentLocale'];
  55. }
  56. /**
  57. *
  58. */
  59. public function __wakeup()
  60. {
  61. if ( ! $this->__isInitialized__) {
  62. $this->__initializer__ = function (Manufacturer $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()
  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()
  161. {
  162. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
  163. return parent::getName();
  164. }
  165. /**
  166. * {@inheritDoc}
  167. */
  168. public function getUrl($lang = NULL)
  169. {
  170. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUrl', [$lang]);
  171. return parent::getUrl($lang);
  172. }
  173. /**
  174. * {@inheritDoc}
  175. */
  176. public function getLogo()
  177. {
  178. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLogo', []);
  179. return parent::getLogo();
  180. }
  181. /**
  182. * {@inheritDoc}
  183. */
  184. public function getImage()
  185. {
  186. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', []);
  187. return parent::getImage();
  188. }
  189. /**
  190. * {@inheritDoc}
  191. */
  192. public function getDateAdded(): \DateTime
  193. {
  194. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDateAdded', []);
  195. return parent::getDateAdded();
  196. }
  197. /**
  198. * {@inheritDoc}
  199. */
  200. public function getLastModified(): \DateTime
  201. {
  202. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastModified', []);
  203. return parent::getLastModified();
  204. }
  205. /**
  206. * {@inheritDoc}
  207. */
  208. public function getStatus()
  209. {
  210. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);
  211. return parent::getStatus();
  212. }
  213. /**
  214. * {@inheritDoc}
  215. */
  216. public function getOrder()
  217. {
  218. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrder', []);
  219. return parent::getOrder();
  220. }
  221. /**
  222. * {@inheritDoc}
  223. */
  224. public function getDescriptions()
  225. {
  226. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescriptions', []);
  227. return parent::getDescriptions();
  228. }
  229. /**
  230. * {@inheritDoc}
  231. */
  232. public function getExport(): int
  233. {
  234. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getExport', []);
  235. return parent::getExport();
  236. }
  237. /**
  238. * {@inheritDoc}
  239. */
  240. public function getCountryRestrictions()
  241. {
  242. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountryRestrictions', []);
  243. return parent::getCountryRestrictions();
  244. }
  245. /**
  246. * {@inheritDoc}
  247. */
  248. public function getCountries()
  249. {
  250. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountries', []);
  251. return parent::getCountries();
  252. }
  253. /**
  254. * {@inheritDoc}
  255. */
  256. public function getLockedPrice(): ?int
  257. {
  258. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLockedPrice', []);
  259. return parent::getLockedPrice();
  260. }
  261. /**
  262. * {@inheritDoc}
  263. */
  264. public function getWelcome(): ?int
  265. {
  266. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getWelcome', []);
  267. return parent::getWelcome();
  268. }
  269. /**
  270. * {@inheritDoc}
  271. */
  272. public function setName($name)
  273. {
  274. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
  275. return parent::setName($name);
  276. }
  277. /**
  278. * {@inheritDoc}
  279. */
  280. public function setImage($image)
  281. {
  282. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setImage', [$image]);
  283. return parent::setImage($image);
  284. }
  285. /**
  286. * {@inheritDoc}
  287. */
  288. public function setDateAdded(\DateTime $dateAdded)
  289. {
  290. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateAdded', [$dateAdded]);
  291. return parent::setDateAdded($dateAdded);
  292. }
  293. /**
  294. * {@inheritDoc}
  295. */
  296. public function setLastModified(\DateTime $lastModified)
  297. {
  298. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastModified', [$lastModified]);
  299. return parent::setLastModified($lastModified);
  300. }
  301. /**
  302. * {@inheritDoc}
  303. */
  304. public function setStatus($status)
  305. {
  306. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
  307. return parent::setStatus($status);
  308. }
  309. /**
  310. * {@inheritDoc}
  311. */
  312. public function setOrder($order)
  313. {
  314. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrder', [$order]);
  315. return parent::setOrder($order);
  316. }
  317. /**
  318. * {@inheritDoc}
  319. */
  320. public function setDescriptions($descriptions): void
  321. {
  322. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescriptions', [$descriptions]);
  323. parent::setDescriptions($descriptions);
  324. }
  325. /**
  326. * {@inheritDoc}
  327. */
  328. public function setExport(int $export): void
  329. {
  330. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setExport', [$export]);
  331. parent::setExport($export);
  332. }
  333. /**
  334. * {@inheritDoc}
  335. */
  336. public function setCountryRestrictions($countryRestrictions): void
  337. {
  338. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCountryRestrictions', [$countryRestrictions]);
  339. parent::setCountryRestrictions($countryRestrictions);
  340. }
  341. /**
  342. * {@inheritDoc}
  343. */
  344. public function setLockedPrice($lockedPrice): void
  345. {
  346. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLockedPrice', [$lockedPrice]);
  347. parent::setLockedPrice($lockedPrice);
  348. }
  349. /**
  350. * {@inheritDoc}
  351. */
  352. public function setWelcome(int $welcome): void
  353. {
  354. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setWelcome', [$welcome]);
  355. parent::setWelcome($welcome);
  356. }
  357. /**
  358. * {@inheritDoc}
  359. */
  360. public function hasRestrictions()
  361. {
  362. $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasRestrictions', []);
  363. return parent::hasRestrictions();
  364. }
  365. /**
  366. * {@inheritDoc}
  367. */
  368. public function hasRestrictionForCountry($country)
  369. {
  370. $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasRestrictionForCountry', [$country]);
  371. return parent::hasRestrictionForCountry($country);
  372. }
  373. /**
  374. * {@inheritDoc}
  375. */
  376. public function isAvailableForCountry($country)
  377. {
  378. $this->__initializer__ && $this->__initializer__->__invoke($this, 'isAvailableForCountry', [$country]);
  379. return parent::isAvailableForCountry($country);
  380. }
  381. /**
  382. * {@inheritDoc}
  383. */
  384. public function getManufacturerDescription($lang = 'fr'): ?\App\Entity\ManufacturerDescription
  385. {
  386. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getManufacturerDescription', [$lang]);
  387. return parent::getManufacturerDescription($lang);
  388. }
  389. /**
  390. * {@inheritDoc}
  391. */
  392. public function toArray(): array
  393. {
  394. $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', []);
  395. return parent::toArray();
  396. }
  397. /**
  398. * {@inheritDoc}
  399. */
  400. public function isActive()
  401. {
  402. $this->__initializer__ && $this->__initializer__->__invoke($this, 'isActive', []);
  403. return parent::isActive();
  404. }
  405. /**
  406. * {@inheritDoc}
  407. */
  408. public function hasWelcomeDiscount()
  409. {
  410. $this->__initializer__ && $this->__initializer__->__invoke($this, 'hasWelcomeDiscount', []);
  411. return parent::hasWelcomeDiscount();
  412. }
  413. /**
  414. * {@inheritDoc}
  415. */
  416. public function getLanguageId()
  417. {
  418. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLanguageId', []);
  419. return parent::getLanguageId();
  420. }
  421. /**
  422. * {@inheritDoc}
  423. */
  424. public function setLanguageId($languageId)
  425. {
  426. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLanguageId', [$languageId]);
  427. return parent::setLanguageId($languageId);
  428. }
  429. /**
  430. * {@inheritDoc}
  431. */
  432. public function setCurrentLocale($locale)
  433. {
  434. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrentLocale', [$locale]);
  435. return parent::setCurrentLocale($locale);
  436. }
  437. /**
  438. * {@inheritDoc}
  439. */
  440. public function translate($languageCode = 'fr')
  441. {
  442. $this->__initializer__ && $this->__initializer__->__invoke($this, 'translate', [$languageCode]);
  443. return parent::translate($languageCode);
  444. }
  445. /**
  446. * {@inheritDoc}
  447. */
  448. public function __call($method, $arguments)
  449. {
  450. $this->__initializer__ && $this->__initializer__->__invoke($this, '__call', [$method, $arguments]);
  451. return parent::__call($method, $arguments);
  452. }
  453. }