Sin descripción

__CG__MailPoetEntitiesScheduledTaskEntity.php 12KB

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