Keine Beschreibung

__CG__MailPoetEntitiesScheduledTaskSubscriberEntity.php 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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 ScheduledTaskSubscriberEntity extends \MailPoet\Entities\ScheduledTaskSubscriberEntity 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\\ScheduledTaskSubscriberEntity' . "\0" . 'processed', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'failed', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'error', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'task', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'subscriber', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'updatedAt'];
  54. }
  55. return ['__isInitialized__', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'processed', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'failed', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'error', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'task', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'subscriber', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\ScheduledTaskSubscriberEntity' . "\0" . 'updatedAt'];
  56. }
  57. /**
  58. *
  59. */
  60. public function __wakeup()
  61. {
  62. if ( ! $this->__isInitialized__) {
  63. $this->__initializer__ = function (ScheduledTaskSubscriberEntity $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 getProcessed(): int
  151. {
  152. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProcessed', []);
  153. return parent::getProcessed();
  154. }
  155. /**
  156. * {@inheritDoc}
  157. */
  158. public function setProcessed(int $processed)
  159. {
  160. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setProcessed', [$processed]);
  161. return parent::setProcessed($processed);
  162. }
  163. /**
  164. * {@inheritDoc}
  165. */
  166. public function getFailed(): int
  167. {
  168. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getFailed', []);
  169. return parent::getFailed();
  170. }
  171. /**
  172. * {@inheritDoc}
  173. */
  174. public function setFailed(int $failed)
  175. {
  176. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setFailed', [$failed]);
  177. return parent::setFailed($failed);
  178. }
  179. /**
  180. * {@inheritDoc}
  181. */
  182. public function getError()
  183. {
  184. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getError', []);
  185. return parent::getError();
  186. }
  187. /**
  188. * {@inheritDoc}
  189. */
  190. public function setError($error)
  191. {
  192. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setError', [$error]);
  193. return parent::setError($error);
  194. }
  195. /**
  196. * {@inheritDoc}
  197. */
  198. public function getTask()
  199. {
  200. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTask', []);
  201. return parent::getTask();
  202. }
  203. /**
  204. * {@inheritDoc}
  205. */
  206. public function setTask(\MailPoet\Entities\ScheduledTaskEntity $task)
  207. {
  208. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setTask', [$task]);
  209. return parent::setTask($task);
  210. }
  211. /**
  212. * {@inheritDoc}
  213. */
  214. public function getSubscriber()
  215. {
  216. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubscriber', []);
  217. return parent::getSubscriber();
  218. }
  219. /**
  220. * {@inheritDoc}
  221. */
  222. public function setSubscriber(\MailPoet\Entities\SubscriberEntity $subscriber)
  223. {
  224. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubscriber', [$subscriber]);
  225. return parent::setSubscriber($subscriber);
  226. }
  227. /**
  228. * {@inheritDoc}
  229. */
  230. public function getCreatedAt()
  231. {
  232. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
  233. return parent::getCreatedAt();
  234. }
  235. /**
  236. * {@inheritDoc}
  237. */
  238. public function setCreatedAt(\DateTimeInterface $createdAt)
  239. {
  240. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
  241. return parent::setCreatedAt($createdAt);
  242. }
  243. /**
  244. * {@inheritDoc}
  245. */
  246. public function getUpdatedAt()
  247. {
  248. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
  249. return parent::getUpdatedAt();
  250. }
  251. /**
  252. * {@inheritDoc}
  253. */
  254. public function setUpdatedAt(\DateTimeInterface $updatedAt)
  255. {
  256. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
  257. return parent::setUpdatedAt($updatedAt);
  258. }
  259. }