PageRenderTime 47ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://gitlab.com/bofbof93/PISprintWeb
PHP | 320 lines | 144 code | 63 blank | 113 comment | 20 complexity | 231b38d7b43a9b50aa920d6b6d1f03a8 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 Catalogue extends \TunisiaMall\EntityBundle\Entity\Catalogue 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 = ['Date' => NULL, 'Type' => NULL];
  35. /**
  36. * @param \Closure $initializer
  37. * @param \Closure $cloner
  38. */
  39. public function __construct($initializer = null, $cloner = null)
  40. {
  41. unset($this->Date, $this->Type);
  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\\Catalogue' . "\0" . 'id', 'Date', 'Type', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Catalogue' . "\0" . 'Administrateur', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Catalogue' . "\0" . 'ResponsableEnseigne'];
  92. }
  93. return ['__isInitialized__', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Catalogue' . "\0" . 'id', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Catalogue' . "\0" . 'Administrateur', '' . "\0" . 'TunisiaMall\\EntityBundle\\Entity\\Catalogue' . "\0" . 'ResponsableEnseigne'];
  94. }
  95. /**
  96. *
  97. */
  98. public function __wakeup()
  99. {
  100. if ( ! $this->__isInitialized__) {
  101. $this->__initializer__ = function (Catalogue $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->Date, $this->Type);
  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 getIdCatalogue()
  189. {
  190. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getIdCatalogue', []);
  191. return parent::getIdCatalogue();
  192. }
  193. /**
  194. * {@inheritDoc}
  195. */
  196. public function getDate()
  197. {
  198. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDate', []);
  199. return parent::getDate();
  200. }
  201. /**
  202. * {@inheritDoc}
  203. */
  204. public function getType()
  205. {
  206. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
  207. return parent::getType();
  208. }
  209. /**
  210. * {@inheritDoc}
  211. */
  212. public function setDate($Date)
  213. {
  214. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDate', [$Date]);
  215. return parent::setDate($Date);
  216. }
  217. /**
  218. * {@inheritDoc}
  219. */
  220. public function setType($Type)
  221. {
  222. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$Type]);
  223. return parent::setType($Type);
  224. }
  225. /**
  226. * {@inheritDoc}
  227. */
  228. public function getAdministrateur()
  229. {
  230. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAdministrateur', []);
  231. return parent::getAdministrateur();
  232. }
  233. /**
  234. * {@inheritDoc}
  235. */
  236. public function getResponsableEnseigne()
  237. {
  238. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getResponsableEnseigne', []);
  239. return parent::getResponsableEnseigne();
  240. }
  241. /**
  242. * {@inheritDoc}
  243. */
  244. public function setAdministrateur($Administrateur)
  245. {
  246. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAdministrateur', [$Administrateur]);
  247. return parent::setAdministrateur($Administrateur);
  248. }
  249. /**
  250. * {@inheritDoc}
  251. */
  252. public function setResponsableEnseigne($ResponsableEnseigne)
  253. {
  254. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setResponsableEnseigne', [$ResponsableEnseigne]);
  255. return parent::setResponsableEnseigne($ResponsableEnseigne);
  256. }
  257. }