Geen omschrijving

__CG__MailPoetEntitiesSendingQueueEntity.php 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  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 SendingQueueEntity extends \MailPoet\Entities\SendingQueueEntity 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. * {@inheritDoc}
  48. * @param string $name
  49. */
  50. public function __get($name)
  51. {
  52. $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', [$name]);
  53. return parent::__get($name);
  54. }
  55. /**
  56. *
  57. * @return array
  58. */
  59. public function __sleep()
  60. {
  61. if ($this->__isInitialized__) {
  62. return ['__isInitialized__', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'newsletterRenderedBody', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'newsletterRenderedSubject', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'subscribers', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'countTotal', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'countProcessed', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'countToProcess', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'meta', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'task', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'newsletter', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'updatedAt', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'deletedAt'];
  63. }
  64. return ['__isInitialized__', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'newsletterRenderedBody', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'newsletterRenderedSubject', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'subscribers', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'countTotal', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'countProcessed', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'countToProcess', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'meta', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'task', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'newsletter', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'updatedAt', '' . "\0" . 'MailPoet\\Entities\\SendingQueueEntity' . "\0" . 'deletedAt'];
  65. }
  66. /**
  67. *
  68. */
  69. public function __wakeup()
  70. {
  71. if ( ! $this->__isInitialized__) {
  72. $this->__initializer__ = function (SendingQueueEntity $proxy) {
  73. $proxy->__setInitializer(null);
  74. $proxy->__setCloner(null);
  75. $existingProperties = get_object_vars($proxy);
  76. foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
  77. if ( ! array_key_exists($property, $existingProperties)) {
  78. $proxy->$property = $defaultValue;
  79. }
  80. }
  81. };
  82. }
  83. }
  84. /**
  85. *
  86. */
  87. public function __clone()
  88. {
  89. $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
  90. }
  91. /**
  92. * Forces initialization of the proxy
  93. */
  94. public function __load()
  95. {
  96. $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
  97. }
  98. /**
  99. * {@inheritDoc}
  100. * @internal generated method: use only when explicitly handling proxy specific loading logic
  101. */
  102. public function __isInitialized()
  103. {
  104. return $this->__isInitialized__;
  105. }
  106. /**
  107. * {@inheritDoc}
  108. * @internal generated method: use only when explicitly handling proxy specific loading logic
  109. */
  110. public function __setInitialized($initialized)
  111. {
  112. $this->__isInitialized__ = $initialized;
  113. }
  114. /**
  115. * {@inheritDoc}
  116. * @internal generated method: use only when explicitly handling proxy specific loading logic
  117. */
  118. public function __setInitializer(\Closure $initializer = null)
  119. {
  120. $this->__initializer__ = $initializer;
  121. }
  122. /**
  123. * {@inheritDoc}
  124. * @internal generated method: use only when explicitly handling proxy specific loading logic
  125. */
  126. public function __getInitializer()
  127. {
  128. return $this->__initializer__;
  129. }
  130. /**
  131. * {@inheritDoc}
  132. * @internal generated method: use only when explicitly handling proxy specific loading logic
  133. */
  134. public function __setCloner(\Closure $cloner = null)
  135. {
  136. $this->__cloner__ = $cloner;
  137. }
  138. /**
  139. * {@inheritDoc}
  140. * @internal generated method: use only when explicitly handling proxy specific cloning logic
  141. */
  142. public function __getCloner()
  143. {
  144. return $this->__cloner__;
  145. }
  146. /**
  147. * {@inheritDoc}
  148. * @internal generated method: use only when explicitly handling proxy specific loading logic
  149. * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  150. * @static
  151. */
  152. public function __getLazyProperties()
  153. {
  154. return self::$lazyPropertiesDefaults;
  155. }
  156. /**
  157. * {@inheritDoc}
  158. */
  159. public function getNewsletterRenderedBody()
  160. {
  161. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNewsletterRenderedBody', []);
  162. return parent::getNewsletterRenderedBody();
  163. }
  164. /**
  165. * {@inheritDoc}
  166. */
  167. public function setNewsletterRenderedBody($newsletterRenderedBody)
  168. {
  169. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNewsletterRenderedBody', [$newsletterRenderedBody]);
  170. return parent::setNewsletterRenderedBody($newsletterRenderedBody);
  171. }
  172. /**
  173. * {@inheritDoc}
  174. */
  175. public function getNewsletterRenderedSubject()
  176. {
  177. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNewsletterRenderedSubject', []);
  178. return parent::getNewsletterRenderedSubject();
  179. }
  180. /**
  181. * {@inheritDoc}
  182. */
  183. public function setNewsletterRenderedSubject($newsletterRenderedSubject)
  184. {
  185. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNewsletterRenderedSubject', [$newsletterRenderedSubject]);
  186. return parent::setNewsletterRenderedSubject($newsletterRenderedSubject);
  187. }
  188. /**
  189. * {@inheritDoc}
  190. */
  191. public function getSubscribers()
  192. {
  193. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubscribers', []);
  194. return parent::getSubscribers();
  195. }
  196. /**
  197. * {@inheritDoc}
  198. */
  199. public function setSubscribers($subscribers)
  200. {
  201. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubscribers', [$subscribers]);
  202. return parent::setSubscribers($subscribers);
  203. }
  204. /**
  205. * {@inheritDoc}
  206. */
  207. public function getCountTotal()
  208. {
  209. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountTotal', []);
  210. return parent::getCountTotal();
  211. }
  212. /**
  213. * {@inheritDoc}
  214. */
  215. public function setCountTotal($countTotal)
  216. {
  217. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCountTotal', [$countTotal]);
  218. return parent::setCountTotal($countTotal);
  219. }
  220. /**
  221. * {@inheritDoc}
  222. */
  223. public function getCountProcessed()
  224. {
  225. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountProcessed', []);
  226. return parent::getCountProcessed();
  227. }
  228. /**
  229. * {@inheritDoc}
  230. */
  231. public function setCountProcessed($countProcessed)
  232. {
  233. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCountProcessed', [$countProcessed]);
  234. return parent::setCountProcessed($countProcessed);
  235. }
  236. /**
  237. * {@inheritDoc}
  238. */
  239. public function getCountToProcess()
  240. {
  241. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountToProcess', []);
  242. return parent::getCountToProcess();
  243. }
  244. /**
  245. * {@inheritDoc}
  246. */
  247. public function setCountToProcess($countToProcess)
  248. {
  249. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCountToProcess', [$countToProcess]);
  250. return parent::setCountToProcess($countToProcess);
  251. }
  252. /**
  253. * {@inheritDoc}
  254. */
  255. public function getMeta()
  256. {
  257. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMeta', []);
  258. return parent::getMeta();
  259. }
  260. /**
  261. * {@inheritDoc}
  262. */
  263. public function setMeta($meta)
  264. {
  265. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setMeta', [$meta]);
  266. return parent::setMeta($meta);
  267. }
  268. /**
  269. * {@inheritDoc}
  270. */
  271. public function getTask()
  272. {
  273. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTask', []);
  274. return parent::getTask();
  275. }
  276. /**
  277. * {@inheritDoc}
  278. */
  279. public function setTask(\MailPoet\Entities\ScheduledTaskEntity $task)
  280. {
  281. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setTask', [$task]);
  282. return parent::setTask($task);
  283. }
  284. /**
  285. * {@inheritDoc}
  286. */
  287. public function getNewsletter()
  288. {
  289. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNewsletter', []);
  290. return parent::getNewsletter();
  291. }
  292. /**
  293. * {@inheritDoc}
  294. */
  295. public function setNewsletter(\MailPoet\Entities\NewsletterEntity $newsletter)
  296. {
  297. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNewsletter', [$newsletter]);
  298. return parent::setNewsletter($newsletter);
  299. }
  300. /**
  301. * {@inheritDoc}
  302. */
  303. public function getId()
  304. {
  305. if ($this->__isInitialized__ === false) {
  306. return (int) parent::getId();
  307. }
  308. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
  309. return parent::getId();
  310. }
  311. /**
  312. * {@inheritDoc}
  313. */
  314. public function setId($id)
  315. {
  316. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', [$id]);
  317. return parent::setId($id);
  318. }
  319. /**
  320. * {@inheritDoc}
  321. */
  322. public function getCreatedAt()
  323. {
  324. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
  325. return parent::getCreatedAt();
  326. }
  327. /**
  328. * {@inheritDoc}
  329. */
  330. public function setCreatedAt(\DateTimeInterface $createdAt)
  331. {
  332. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
  333. return parent::setCreatedAt($createdAt);
  334. }
  335. /**
  336. * {@inheritDoc}
  337. */
  338. public function getUpdatedAt()
  339. {
  340. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
  341. return parent::getUpdatedAt();
  342. }
  343. /**
  344. * {@inheritDoc}
  345. */
  346. public function setUpdatedAt(\DateTimeInterface $updatedAt)
  347. {
  348. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
  349. return parent::setUpdatedAt($updatedAt);
  350. }
  351. /**
  352. * {@inheritDoc}
  353. */
  354. public function getDeletedAt()
  355. {
  356. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeletedAt', []);
  357. return parent::getDeletedAt();
  358. }
  359. /**
  360. * {@inheritDoc}
  361. */
  362. public function setDeletedAt($deletedAt)
  363. {
  364. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletedAt', [$deletedAt]);
  365. return parent::setDeletedAt($deletedAt);
  366. }
  367. }