/app/cache/prod/doctrine/orm/Proxies/__CG__TunisiaMallEntityBundleEntityPromotion.php

https://gitlab.com/bofbof93/PISprintWeb · PHP · 364 lines · 164 code · 75 blank · 125 comment · 24 complexity · 56f260b1f714ed31fb7ee6f7afce8f10 MD5 · raw file

  1. <?php
  2. namespace Proxies\__CG__\TunisiaMall\EntityBundle\Entity;
  3. /**
  4. * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
  5. */
  6. class Promotion extends \TunisiaMall\EntityBundle\Entity\Promotion 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\Persistence\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\Persistence\Proxy::__setCloner
  20. */
  21. public $__cloner__;
  22. /**
  23. * @var boolean flag indicating if this object was already initialized
  24. *
  25. * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
  26. */
  27. public $__isInitialized__ = false;
  28. /**
  29. * @var array properties to be lazy loaded, with keys being the property
  30. * names and values being their default values
  31. *
  32. * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
  33. */
  34. public static $lazyPropertiesDefaults = ['DateDebut' => NULL, 'DateFin' => NULL, 'Tauxderéduction' => NULL, 'Etat' => NULL];
  35. /**
  36. * @param \Closure $initializer
  37. * @param \Closure $cloner
  38. */
  39. public function __construct($initializer = null, $cloner = null)
  40. {
  41. unset($this->DateDebut, $this->DateFin, $this->Tauxderéduction, $this->Etat);
  42. $this->__initializer__ = $initializer;
  43. $this->__cloner__ = $cloner;
  44. }
  45. /**
  46. *
  47. * @param string $name
  48. */
  49. public function __get($name)
  50. {
  51. if (array_key_exists($name, $this->__getLazyProperties())) {
  52. $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', [$name]);
  53. return $this->$name;
  54. }
  55. trigger_error(sprintf('Undefined property: %s::$%s', __CLASS__, $name), E_USER_NOTICE);
  56. }
  57. /**
  58. *
  59. * @param string $name
  60. * @param mixed $value
  61. */
  62. public function __set($name, $value)
  63. {
  64. if (array_key_exists($name, $this->__getLazyProperties())) {
  65. $this->__initializer__ && $this->__initializer__->__invoke($this, '__set', [$name, $value]);
  66. $this->$name = $value;
  67. return;
  68. }
  69. $this->$name = $value;
  70. }
  71. /**
  72. *
  73. * @param string $name
  74. * @return boolean
  75. */
  76. public function __isset($name)
  77. {
  78. if (array_key_exists($name, $this->__getLazyProperties())) {
  79. $this->__initializer__ && $this->__initializer__->__invoke($this, '__isset', [$name]);
  80. return isset($this->$name);
  81. }
  82. return false;
  83. }
  84. /**
  85. *
  86. * @return array
  87. */
  88. public function __sleep()
  89. {
  90. if ($this->__isInitialized__) {
  91. return ['__isInitialized__', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Promotion' . "\0" . 'id', 'DateDebut', 'DateFin', 'Tauxderéduction', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Promotion' . "\0" . 'Image', 'Etat', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Promotion' . "\0" . 'ResponsableEnseigne'];
  92. }
  93. return ['__isInitialized__', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Promotion' . "\0" . 'id', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Promotion' . "\0" . 'Image', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Promotion' . "\0" . 'ResponsableEnseigne'];
  94. }
  95. /**
  96. *
  97. */
  98. public function __wakeup()
  99. {
  100. if ( ! $this->__isInitialized__) {
  101. $this->__initializer__ = function (Promotion $proxy) {
  102. $proxy->__setInitializer(null);
  103. $proxy->__setCloner(null);
  104. $existingProperties = get_object_vars($proxy);
  105. foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
  106. if ( ! array_key_exists($property, $existingProperties)) {
  107. $proxy->$property = $defaultValue;
  108. }
  109. }
  110. };
  111. unset($this->DateDebut, $this->DateFin, $this->Tauxderéduction, $this->Etat);
  112. }
  113. }
  114. /**
  115. *
  116. */
  117. public function __clone()
  118. {
  119. $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
  120. }
  121. /**
  122. * Forces initialization of the proxy
  123. */
  124. public function __load()
  125. {
  126. $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
  127. }
  128. /**
  129. * {@inheritDoc}
  130. * @internal generated method: use only when explicitly handling proxy specific loading logic
  131. */
  132. public function __isInitialized()
  133. {
  134. return $this->__isInitialized__;
  135. }
  136. /**
  137. * {@inheritDoc}
  138. * @internal generated method: use only when explicitly handling proxy specific loading logic
  139. */
  140. public function __setInitialized($initialized)
  141. {
  142. $this->__isInitialized__ = $initialized;
  143. }
  144. /**
  145. * {@inheritDoc}
  146. * @internal generated method: use only when explicitly handling proxy specific loading logic
  147. */
  148. public function __setInitializer(\Closure $initializer = null)
  149. {
  150. $this->__initializer__ = $initializer;
  151. }
  152. /**
  153. * {@inheritDoc}
  154. * @internal generated method: use only when explicitly handling proxy specific loading logic
  155. */
  156. public function __getInitializer()
  157. {
  158. return $this->__initializer__;
  159. }
  160. /**
  161. * {@inheritDoc}
  162. * @internal generated method: use only when explicitly handling proxy specific loading logic
  163. */
  164. public function __setCloner(\Closure $cloner = null)
  165. {
  166. $this->__cloner__ = $cloner;
  167. }
  168. /**
  169. * {@inheritDoc}
  170. * @internal generated method: use only when explicitly handling proxy specific cloning logic
  171. */
  172. public function __getCloner()
  173. {
  174. return $this->__cloner__;
  175. }
  176. /**
  177. * {@inheritDoc}
  178. * @internal generated method: use only when explicitly handling proxy specific loading logic
  179. * @static
  180. */
  181. public function __getLazyProperties()
  182. {
  183. return self::$lazyPropertiesDefaults;
  184. }
  185. /**
  186. * {@inheritDoc}
  187. */
  188. public function getIdPromotion()
  189. {
  190. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getIdPromotion', []);
  191. return parent::getIdPromotion();
  192. }
  193. /**
  194. * {@inheritDoc}
  195. */
  196. public function getDateDebut()
  197. {
  198. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDateDebut', []);
  199. return parent::getDateDebut();
  200. }
  201. /**
  202. * {@inheritDoc}
  203. */
  204. public function getDateFin()
  205. {
  206. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDateFin', []);
  207. return parent::getDateFin();
  208. }
  209. /**
  210. * {@inheritDoc}
  211. */
  212. public function getTauxderéduction()
  213. {
  214. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTauxderéduction', []);
  215. return parent::getTauxderéduction();
  216. }
  217. /**
  218. * {@inheritDoc}
  219. */
  220. public function getImage()
  221. {
  222. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', []);
  223. return parent::getImage();
  224. }
  225. /**
  226. * {@inheritDoc}
  227. */
  228. public function getEtat()
  229. {
  230. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getEtat', []);
  231. return parent::getEtat();
  232. }
  233. /**
  234. * {@inheritDoc}
  235. */
  236. public function setDateDebut($DateDebut)
  237. {
  238. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateDebut', [$DateDebut]);
  239. return parent::setDateDebut($DateDebut);
  240. }
  241. /**
  242. * {@inheritDoc}
  243. */
  244. public function setDateFin($DateFin)
  245. {
  246. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateFin', [$DateFin]);
  247. return parent::setDateFin($DateFin);
  248. }
  249. /**
  250. * {@inheritDoc}
  251. */
  252. public function setTauxderéduction($Tauxderéduction)
  253. {
  254. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setTauxderéduction', [$Tauxderéduction]);
  255. return parent::setTauxderéduction($Tauxderéduction);
  256. }
  257. /**
  258. * {@inheritDoc}
  259. */
  260. public function setImage($Image)
  261. {
  262. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setImage', [$Image]);
  263. return parent::setImage($Image);
  264. }
  265. /**
  266. * {@inheritDoc}
  267. */
  268. public function setEtat($Etat)
  269. {
  270. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setEtat', [$Etat]);
  271. return parent::setEtat($Etat);
  272. }
  273. /**
  274. * {@inheritDoc}
  275. */
  276. public function getResponsableEnseigne()
  277. {
  278. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getResponsableEnseigne', []);
  279. return parent::getResponsableEnseigne();
  280. }
  281. /**
  282. * {@inheritDoc}
  283. */
  284. public function setResponsableEnseigne($ResponsableEnseigne)
  285. {
  286. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setResponsableEnseigne', [$ResponsableEnseigne]);
  287. return parent::setResponsableEnseigne($ResponsableEnseigne);
  288. }
  289. }