Nenhuma Descrição

__CG__MailPoetEntitiesStatisticsClickEntity.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  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 StatisticsClickEntity extends \MailPoet\Entities\StatisticsClickEntity 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\\StatisticsClickEntity' . "\0" . 'newsletter', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'queue', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'subscriber', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'link', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'wooCommercePurchases', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'userAgent', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'userAgentType', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'count', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'updatedAt'];
  54. }
  55. return ['__isInitialized__', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'newsletter', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'queue', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'subscriber', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'link', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'wooCommercePurchases', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'userAgent', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'userAgentType', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'count', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\StatisticsClickEntity' . "\0" . 'updatedAt'];
  56. }
  57. /**
  58. *
  59. */
  60. public function __wakeup()
  61. {
  62. if ( ! $this->__isInitialized__) {
  63. $this->__initializer__ = function (StatisticsClickEntity $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 getLink()
  167. {
  168. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLink', []);
  169. return parent::getLink();
  170. }
  171. /**
  172. * {@inheritDoc}
  173. */
  174. public function setNewsletter($newsletter)
  175. {
  176. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNewsletter', [$newsletter]);
  177. return parent::setNewsletter($newsletter);
  178. }
  179. /**
  180. * {@inheritDoc}
  181. */
  182. public function setQueue($queue)
  183. {
  184. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setQueue', [$queue]);
  185. return parent::setQueue($queue);
  186. }
  187. /**
  188. * {@inheritDoc}
  189. */
  190. public function setSubscriber($subscriber)
  191. {
  192. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubscriber', [$subscriber]);
  193. return parent::setSubscriber($subscriber);
  194. }
  195. /**
  196. * {@inheritDoc}
  197. */
  198. public function getSubscriber(): ?\MailPoet\Entities\SubscriberEntity
  199. {
  200. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubscriber', []);
  201. return parent::getSubscriber();
  202. }
  203. /**
  204. * {@inheritDoc}
  205. */
  206. public function setLink($link)
  207. {
  208. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setLink', [$link]);
  209. return parent::setLink($link);
  210. }
  211. /**
  212. * {@inheritDoc}
  213. */
  214. public function setCount(int $count)
  215. {
  216. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCount', [$count]);
  217. return parent::setCount($count);
  218. }
  219. /**
  220. * {@inheritDoc}
  221. */
  222. public function getWooCommercePurchases()
  223. {
  224. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getWooCommercePurchases', []);
  225. return parent::getWooCommercePurchases();
  226. }
  227. /**
  228. * {@inheritDoc}
  229. */
  230. public function getCount(): int
  231. {
  232. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCount', []);
  233. return parent::getCount();
  234. }
  235. /**
  236. * {@inheritDoc}
  237. */
  238. public function getUserAgent(): ?\MailPoet\Entities\UserAgentEntity
  239. {
  240. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserAgent', []);
  241. return parent::getUserAgent();
  242. }
  243. /**
  244. * {@inheritDoc}
  245. */
  246. public function setUserAgent(?\MailPoet\Entities\UserAgentEntity $userAgent): void
  247. {
  248. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUserAgent', [$userAgent]);
  249. parent::setUserAgent($userAgent);
  250. }
  251. /**
  252. * {@inheritDoc}
  253. */
  254. public function getUserAgentType(): int
  255. {
  256. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserAgentType', []);
  257. return parent::getUserAgentType();
  258. }
  259. /**
  260. * {@inheritDoc}
  261. */
  262. public function setUserAgentType(int $userAgentType): void
  263. {
  264. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUserAgentType', [$userAgentType]);
  265. parent::setUserAgentType($userAgentType);
  266. }
  267. /**
  268. * {@inheritDoc}
  269. */
  270. public function getId()
  271. {
  272. if ($this->__isInitialized__ === false) {
  273. return (int) parent::getId();
  274. }
  275. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
  276. return parent::getId();
  277. }
  278. /**
  279. * {@inheritDoc}
  280. */
  281. public function setId($id)
  282. {
  283. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', [$id]);
  284. return parent::setId($id);
  285. }
  286. /**
  287. * {@inheritDoc}
  288. */
  289. public function getCreatedAt()
  290. {
  291. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
  292. return parent::getCreatedAt();
  293. }
  294. /**
  295. * {@inheritDoc}
  296. */
  297. public function setCreatedAt(\DateTimeInterface $createdAt)
  298. {
  299. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
  300. return parent::setCreatedAt($createdAt);
  301. }
  302. /**
  303. * {@inheritDoc}
  304. */
  305. public function getUpdatedAt()
  306. {
  307. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
  308. return parent::getUpdatedAt();
  309. }
  310. /**
  311. * {@inheritDoc}
  312. */
  313. public function setUpdatedAt(\DateTimeInterface $updatedAt)
  314. {
  315. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
  316. return parent::setUpdatedAt($updatedAt);
  317. }
  318. }