/wp-content/plugins/mailpoet/generated/doctrine-proxies/__CG__MailPoetEntitiesSegmentEntity.php

https://gitlab.com/remyvianne/krowkaramel · PHP · 430 lines · 190 code · 103 blank · 137 comment · 29 complexity · 2496959349011a3d785386326aaa01a6 MD5 · raw file

  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 SegmentEntity extends \MailPoet\Entities\SegmentEntity 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\\SegmentEntity' . "\0" . 'name', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'type', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'description', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'dynamicFilters', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'averageEngagementScore', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'averageEngagementScoreUpdatedAt', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'updatedAt', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'deletedAt'];
  54. }
  55. return ['__isInitialized__', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'name', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'type', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'description', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'dynamicFilters', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'averageEngagementScore', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'averageEngagementScoreUpdatedAt', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'id', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'createdAt', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'updatedAt', '' . "\0" . 'MailPoet\\Entities\\SegmentEntity' . "\0" . 'deletedAt'];
  56. }
  57. /**
  58. *
  59. */
  60. public function __wakeup()
  61. {
  62. if ( ! $this->__isInitialized__) {
  63. $this->__initializer__ = function (SegmentEntity $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. * {@inheritDoc}
  77. */
  78. public function __clone()
  79. {
  80. $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
  81. parent::__clone();
  82. }
  83. /**
  84. * Forces initialization of the proxy
  85. */
  86. public function __load()
  87. {
  88. $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
  89. }
  90. /**
  91. * {@inheritDoc}
  92. * @internal generated method: use only when explicitly handling proxy specific loading logic
  93. */
  94. public function __isInitialized()
  95. {
  96. return $this->__isInitialized__;
  97. }
  98. /**
  99. * {@inheritDoc}
  100. * @internal generated method: use only when explicitly handling proxy specific loading logic
  101. */
  102. public function __setInitialized($initialized)
  103. {
  104. $this->__isInitialized__ = $initialized;
  105. }
  106. /**
  107. * {@inheritDoc}
  108. * @internal generated method: use only when explicitly handling proxy specific loading logic
  109. */
  110. public function __setInitializer(\Closure $initializer = null)
  111. {
  112. $this->__initializer__ = $initializer;
  113. }
  114. /**
  115. * {@inheritDoc}
  116. * @internal generated method: use only when explicitly handling proxy specific loading logic
  117. */
  118. public function __getInitializer()
  119. {
  120. return $this->__initializer__;
  121. }
  122. /**
  123. * {@inheritDoc}
  124. * @internal generated method: use only when explicitly handling proxy specific loading logic
  125. */
  126. public function __setCloner(\Closure $cloner = null)
  127. {
  128. $this->__cloner__ = $cloner;
  129. }
  130. /**
  131. * {@inheritDoc}
  132. * @internal generated method: use only when explicitly handling proxy specific cloning logic
  133. */
  134. public function __getCloner()
  135. {
  136. return $this->__cloner__;
  137. }
  138. /**
  139. * {@inheritDoc}
  140. * @internal generated method: use only when explicitly handling proxy specific loading logic
  141. * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  142. * @static
  143. */
  144. public function __getLazyProperties()
  145. {
  146. return self::$lazyPropertiesDefaults;
  147. }
  148. /**
  149. * {@inheritDoc}
  150. */
  151. public function getName()
  152. {
  153. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
  154. return parent::getName();
  155. }
  156. /**
  157. * {@inheritDoc}
  158. */
  159. public function setName($name)
  160. {
  161. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
  162. return parent::setName($name);
  163. }
  164. /**
  165. * {@inheritDoc}
  166. */
  167. public function getType()
  168. {
  169. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
  170. return parent::getType();
  171. }
  172. /**
  173. * {@inheritDoc}
  174. */
  175. public function setType($type)
  176. {
  177. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
  178. return parent::setType($type);
  179. }
  180. /**
  181. * {@inheritDoc}
  182. */
  183. public function getDescription()
  184. {
  185. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []);
  186. return parent::getDescription();
  187. }
  188. /**
  189. * {@inheritDoc}
  190. */
  191. public function setDescription($description)
  192. {
  193. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]);
  194. return parent::setDescription($description);
  195. }
  196. /**
  197. * {@inheritDoc}
  198. */
  199. public function getDynamicFilters()
  200. {
  201. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDynamicFilters', []);
  202. return parent::getDynamicFilters();
  203. }
  204. /**
  205. * {@inheritDoc}
  206. */
  207. public function addDynamicFilter(\MailPoet\Entities\DynamicSegmentFilterEntity $dynamicSegmentFilterEntity)
  208. {
  209. $this->__initializer__ && $this->__initializer__->__invoke($this, 'addDynamicFilter', [$dynamicSegmentFilterEntity]);
  210. return parent::addDynamicFilter($dynamicSegmentFilterEntity);
  211. }
  212. /**
  213. * {@inheritDoc}
  214. */
  215. public function isStatic(): bool
  216. {
  217. $this->__initializer__ && $this->__initializer__->__invoke($this, 'isStatic', []);
  218. return parent::isStatic();
  219. }
  220. /**
  221. * {@inheritDoc}
  222. */
  223. public function getAverageEngagementScore(): ?float
  224. {
  225. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAverageEngagementScore', []);
  226. return parent::getAverageEngagementScore();
  227. }
  228. /**
  229. * {@inheritDoc}
  230. */
  231. public function setAverageEngagementScore(?float $averageEngagementScore): void
  232. {
  233. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAverageEngagementScore', [$averageEngagementScore]);
  234. parent::setAverageEngagementScore($averageEngagementScore);
  235. }
  236. /**
  237. * {@inheritDoc}
  238. */
  239. public function getAverageEngagementScoreUpdatedAt(): ?\DateTimeInterface
  240. {
  241. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAverageEngagementScoreUpdatedAt', []);
  242. return parent::getAverageEngagementScoreUpdatedAt();
  243. }
  244. /**
  245. * {@inheritDoc}
  246. */
  247. public function setAverageEngagementScoreUpdatedAt(?\DateTimeInterface $averageEngagementScoreUpdatedAt): void
  248. {
  249. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAverageEngagementScoreUpdatedAt', [$averageEngagementScoreUpdatedAt]);
  250. parent::setAverageEngagementScoreUpdatedAt($averageEngagementScoreUpdatedAt);
  251. }
  252. /**
  253. * {@inheritDoc}
  254. */
  255. public function getFiltersConnectOperator(): string
  256. {
  257. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getFiltersConnectOperator', []);
  258. return parent::getFiltersConnectOperator();
  259. }
  260. /**
  261. * {@inheritDoc}
  262. */
  263. public function getId()
  264. {
  265. if ($this->__isInitialized__ === false) {
  266. return (int) parent::getId();
  267. }
  268. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
  269. return parent::getId();
  270. }
  271. /**
  272. * {@inheritDoc}
  273. */
  274. public function setId($id)
  275. {
  276. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', [$id]);
  277. return parent::setId($id);
  278. }
  279. /**
  280. * {@inheritDoc}
  281. */
  282. public function getCreatedAt(): ?\DateTimeInterface
  283. {
  284. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
  285. return parent::getCreatedAt();
  286. }
  287. /**
  288. * {@inheritDoc}
  289. */
  290. public function setCreatedAt(\DateTimeInterface $createdAt): void
  291. {
  292. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
  293. parent::setCreatedAt($createdAt);
  294. }
  295. /**
  296. * {@inheritDoc}
  297. */
  298. public function getUpdatedAt()
  299. {
  300. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
  301. return parent::getUpdatedAt();
  302. }
  303. /**
  304. * {@inheritDoc}
  305. */
  306. public function setUpdatedAt(\DateTimeInterface $updatedAt)
  307. {
  308. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
  309. return parent::setUpdatedAt($updatedAt);
  310. }
  311. /**
  312. * {@inheritDoc}
  313. */
  314. public function getDeletedAt()
  315. {
  316. $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeletedAt', []);
  317. return parent::getDeletedAt();
  318. }
  319. /**
  320. * {@inheritDoc}
  321. */
  322. public function setDeletedAt($deletedAt)
  323. {
  324. $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletedAt', [$deletedAt]);
  325. return parent::setDeletedAt($deletedAt);
  326. }
  327. }