Aucune description

__CG__MailPoetEntitiesStatisticsUnsubscribeEntity.php 8.1KB

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