Açıklama Yok

__CG__MailPoetEntitiesNewsletterEntity.php 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  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 NewsletterEntity extends \MailPoet\Entities\NewsletterEntity 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\\NewsletterEntity' . "\0" . 'hash', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'subject', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'type', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'senderAddress', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'senderName', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'status', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'replyToAddress', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'replyToName', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'preheader', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'body', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'sentAt', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'unsubscribeToken', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'gaCampaign', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'parent', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'children', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'newsletterSegments', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'options', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'queues', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'updatedAt', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'deletedAt'];
  63. }
  64. return ['__isInitialized__', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'hash', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'subject', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'type', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'senderAddress', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'senderName', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'status', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'replyToAddress', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'replyToName', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'preheader', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'body', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'sentAt', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'unsubscribeToken', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'gaCampaign', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'parent', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'children', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'newsletterSegments', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'options', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'queues', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'updatedAt', '' . "\0" . 'MailPoet\\Entities\\NewsletterEntity' . "\0" . 'deletedAt'];
  65. }
  66. /**
  67. *
  68. */
  69. public function __wakeup()
  70. {
  71. if ( ! $this->__isInitialized__) {
  72. $this->__initializer__ = function (NewsletterEntity $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. * {@inheritDoc}
  86. */
  87. public function __clone()
  88. {
  89. $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
  90. parent::__clone();
  91. }
  92. /**
  93. * Forces initialization of the proxy
  94. */
  95. public function __load()
  96. {
  97. $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
  98. }
  99. /**
  100. * {@inheritDoc}
  101. * @internal generated method: use only when explicitly handling proxy specific loading logic
  102. */
  103. public function __isInitialized()
  104. {
  105. return $this->__isInitialized__;
  106. }
  107. /**
  108. * {@inheritDoc}
  109. * @internal generated method: use only when explicitly handling proxy specific loading logic
  110. */
  111. public function __setInitialized($initialized)
  112. {
  113. $this->__isInitialized__ = $initialized;
  114. }
  115. /**
  116. * {@inheritDoc}
  117. * @internal generated method: use only when explicitly handling proxy specific loading logic
  118. */
  119. public function __setInitializer(\Closure $initializer = null)
  120. {
  121. $this->__initializer__ = $initializer;
  122. }
  123. /**
  124. * {@inheritDoc}
  125. * @internal generated method: use only when explicitly handling proxy specific loading logic
  126. */
  127. public function __getInitializer()
  128. {
  129. return $this->__initializer__;
  130. }
  131. /**
  132. * {@inheritDoc}
  133. * @internal generated method: use only when explicitly handling proxy specific loading logic
  134. */
  135. public function __setCloner(\Closure $cloner = null)
  136. {
  137. $this->__cloner__ = $cloner;
  138. }
  139. /**
  140. * {@inheritDoc}
  141. * @internal generated method: use only when explicitly handling proxy specific cloning logic
  142. */
  143. public function __getCloner()
  144. {
  145. return $this->__cloner__;
  146. }
  147. /**
  148. * {@inheritDoc}
  149. * @internal generated method: use only when explicitly handling proxy specific loading logic
  150. * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  151. * @static
  152. */
  153. public function __getLazyProperties()
  154. {
  155. return self::$lazyPropertiesDefaults;
  156. }
  157. /**
  158. * {@inheritDoc}
  159. */
  160. public function getHash()
  161. {
  162. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getHash', []);
  163. return parent::getHash();
  164. }
  165. /**
  166. * {@inheritDoc}
  167. */
  168. public function setHash($hash)
  169. {
  170. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setHash', [$hash]);
  171. return parent::setHash($hash);
  172. }
  173. /**
  174. * {@inheritDoc}
  175. */
  176. public function getSubject()
  177. {
  178. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubject', []);
  179. return parent::getSubject();
  180. }
  181. /**
  182. * {@inheritDoc}
  183. */
  184. public function setSubject($subject)
  185. {
  186. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubject', [$subject]);
  187. return parent::setSubject($subject);
  188. }
  189. /**
  190. * {@inheritDoc}
  191. */
  192. public function getType()
  193. {
  194. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
  195. return parent::getType();
  196. }
  197. /**
  198. * {@inheritDoc}
  199. */
  200. public function setType($type)
  201. {
  202. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
  203. return parent::setType($type);
  204. }
  205. /**
  206. * {@inheritDoc}
  207. */
  208. public function getSenderAddress()
  209. {
  210. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSenderAddress', []);
  211. return parent::getSenderAddress();
  212. }
  213. /**
  214. * {@inheritDoc}
  215. */
  216. public function setSenderAddress($senderAddress)
  217. {
  218. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSenderAddress', [$senderAddress]);
  219. return parent::setSenderAddress($senderAddress);
  220. }
  221. /**
  222. * {@inheritDoc}
  223. */
  224. public function getSenderName()
  225. {
  226. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSenderName', []);
  227. return parent::getSenderName();
  228. }
  229. /**
  230. * {@inheritDoc}
  231. */
  232. public function setSenderName($senderName)
  233. {
  234. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSenderName', [$senderName]);
  235. return parent::setSenderName($senderName);
  236. }
  237. /**
  238. * {@inheritDoc}
  239. */
  240. public function getStatus()
  241. {
  242. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);
  243. return parent::getStatus();
  244. }
  245. /**
  246. * {@inheritDoc}
  247. */
  248. public function setStatus($status)
  249. {
  250. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
  251. return parent::setStatus($status);
  252. }
  253. /**
  254. * {@inheritDoc}
  255. */
  256. public function getReplyToAddress()
  257. {
  258. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getReplyToAddress', []);
  259. return parent::getReplyToAddress();
  260. }
  261. /**
  262. * {@inheritDoc}
  263. */
  264. public function setReplyToAddress($replyToAddress)
  265. {
  266. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setReplyToAddress', [$replyToAddress]);
  267. return parent::setReplyToAddress($replyToAddress);
  268. }
  269. /**
  270. * {@inheritDoc}
  271. */
  272. public function getReplyToName()
  273. {
  274. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getReplyToName', []);
  275. return parent::getReplyToName();
  276. }
  277. /**
  278. * {@inheritDoc}
  279. */
  280. public function setReplyToName($replyToName)
  281. {
  282. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setReplyToName', [$replyToName]);
  283. return parent::setReplyToName($replyToName);
  284. }
  285. /**
  286. * {@inheritDoc}
  287. */
  288. public function getPreheader()
  289. {
  290. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPreheader', []);
  291. return parent::getPreheader();
  292. }
  293. /**
  294. * {@inheritDoc}
  295. */
  296. public function setPreheader($preheader)
  297. {
  298. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPreheader', [$preheader]);
  299. return parent::setPreheader($preheader);
  300. }
  301. /**
  302. * {@inheritDoc}
  303. */
  304. public function getBody()
  305. {
  306. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getBody', []);
  307. return parent::getBody();
  308. }
  309. /**
  310. * {@inheritDoc}
  311. */
  312. public function setBody($body)
  313. {
  314. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setBody', [$body]);
  315. return parent::setBody($body);
  316. }
  317. /**
  318. * {@inheritDoc}
  319. */
  320. public function getSentAt()
  321. {
  322. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSentAt', []);
  323. return parent::getSentAt();
  324. }
  325. /**
  326. * {@inheritDoc}
  327. */
  328. public function setSentAt($sentAt)
  329. {
  330. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSentAt', [$sentAt]);
  331. return parent::setSentAt($sentAt);
  332. }
  333. /**
  334. * {@inheritDoc}
  335. */
  336. public function getUnsubscribeToken()
  337. {
  338. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUnsubscribeToken', []);
  339. return parent::getUnsubscribeToken();
  340. }
  341. /**
  342. * {@inheritDoc}
  343. */
  344. public function getGaCampaign()
  345. {
  346. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getGaCampaign', []);
  347. return parent::getGaCampaign();
  348. }
  349. /**
  350. * {@inheritDoc}
  351. */
  352. public function setGaCampaign($gaCampaign)
  353. {
  354. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setGaCampaign', [$gaCampaign]);
  355. return parent::setGaCampaign($gaCampaign);
  356. }
  357. /**
  358. * {@inheritDoc}
  359. */
  360. public function setUnsubscribeToken($unsubscribeToken)
  361. {
  362. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUnsubscribeToken', [$unsubscribeToken]);
  363. return parent::setUnsubscribeToken($unsubscribeToken);
  364. }
  365. /**
  366. * {@inheritDoc}
  367. */
  368. public function getParent()
  369. {
  370. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getParent', []);
  371. return parent::getParent();
  372. }
  373. /**
  374. * {@inheritDoc}
  375. */
  376. public function setParent($parent)
  377. {
  378. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setParent', [$parent]);
  379. return parent::setParent($parent);
  380. }
  381. /**
  382. * {@inheritDoc}
  383. */
  384. public function getChildren()
  385. {
  386. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getChildren', []);
  387. return parent::getChildren();
  388. }
  389. /**
  390. * {@inheritDoc}
  391. */
  392. public function getNewsletterSegments()
  393. {
  394. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNewsletterSegments', []);
  395. return parent::getNewsletterSegments();
  396. }
  397. /**
  398. * {@inheritDoc}
  399. */
  400. public function getOptions()
  401. {
  402. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOptions', []);
  403. return parent::getOptions();
  404. }
  405. /**
  406. * {@inheritDoc}
  407. */
  408. public function getOption(string $name): ?\MailPoet\Entities\NewsletterOptionEntity
  409. {
  410. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOption', [$name]);
  411. return parent::getOption($name);
  412. }
  413. /**
  414. * {@inheritDoc}
  415. */
  416. public function getOptionValue(string $name)
  417. {
  418. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOptionValue', [$name]);
  419. return parent::getOptionValue($name);
  420. }
  421. /**
  422. * {@inheritDoc}
  423. */
  424. public function getQueues()
  425. {
  426. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getQueues', []);
  427. return parent::getQueues();
  428. }
  429. /**
  430. * {@inheritDoc}
  431. */
  432. public function getLatestQueue()
  433. {
  434. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLatestQueue', []);
  435. return parent::getLatestQueue();
  436. }
  437. /**
  438. * {@inheritDoc}
  439. */
  440. public function getGlobalStyle(string $category, string $style): ?string
  441. {
  442. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getGlobalStyle', [$category, $style]);
  443. return parent::getGlobalStyle($category, $style);
  444. }
  445. /**
  446. * {@inheritDoc}
  447. */
  448. public function getProcessedAt(): ?\DateTimeInterface
  449. {
  450. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProcessedAt', []);
  451. return parent::getProcessedAt();
  452. }
  453. /**
  454. * {@inheritDoc}
  455. */
  456. public function getId()
  457. {
  458. if ($this->__isInitialized__ === false) {
  459. return (int) parent::getId();
  460. }
  461. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
  462. return parent::getId();
  463. }
  464. /**
  465. * {@inheritDoc}
  466. */
  467. public function setId($id)
  468. {
  469. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', [$id]);
  470. return parent::setId($id);
  471. }
  472. /**
  473. * {@inheritDoc}
  474. */
  475. public function getCreatedAt()
  476. {
  477. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
  478. return parent::getCreatedAt();
  479. }
  480. /**
  481. * {@inheritDoc}
  482. */
  483. public function setCreatedAt(\DateTimeInterface $createdAt)
  484. {
  485. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
  486. return parent::setCreatedAt($createdAt);
  487. }
  488. /**
  489. * {@inheritDoc}
  490. */
  491. public function getUpdatedAt()
  492. {
  493. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
  494. return parent::getUpdatedAt();
  495. }
  496. /**
  497. * {@inheritDoc}
  498. */
  499. public function setUpdatedAt(\DateTimeInterface $updatedAt)
  500. {
  501. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
  502. return parent::setUpdatedAt($updatedAt);
  503. }
  504. /**
  505. * {@inheritDoc}
  506. */
  507. public function getDeletedAt()
  508. {
  509. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeletedAt', []);
  510. return parent::getDeletedAt();
  511. }
  512. /**
  513. * {@inheritDoc}
  514. */
  515. public function setDeletedAt($deletedAt)
  516. {
  517. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletedAt', [$deletedAt]);
  518. return parent::setDeletedAt($deletedAt);
  519. }
  520. }