var/cache/dev/doctrine/orm/Proxies/__CG__HitsoBundleContentBundleEntityArticle.php line 8

Open in your IDE?
  1. <?php
  2. namespace Proxies\__CG__\Hitso\Bundle\ContentBundle\Entity;
  3. /**
  4.  * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
  5.  */
  6. class Article extends \Hitso\Bundle\ContentBundle\Entity\Article implements \Doctrine\ORM\Proxy\Proxy
  7. {
  8.     /**
  9.      * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
  10.      *      three parameters, being respectively the proxy object to be initialized, the method that triggered the
  11.      *      initialization process and an array of ordered parameters that were passed to that method.
  12.      *
  13.      * @see \Doctrine\Common\Proxy\Proxy::__setInitializer
  14.      */
  15.     public $__initializer__;
  16.     /**
  17.      * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
  18.      *
  19.      * @see \Doctrine\Common\Proxy\Proxy::__setCloner
  20.      */
  21.     public $__cloner__;
  22.     /**
  23.      * @var boolean flag indicating if this object was already initialized
  24.      *
  25.      * @see \Doctrine\Persistence\Proxy::__isInitialized
  26.      */
  27.     public $__isInitialized__ false;
  28.     /**
  29.      * @var array<string, null> properties to be lazy loaded, indexed by property name
  30.      */
  31.     public static $lazyPropertiesNames = array (
  32. );
  33.     /**
  34.      * @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
  35.      *
  36.      * @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
  37.      */
  38.     public static $lazyPropertiesDefaults = array (
  39. );
  40.     public function __construct(?\Closure $initializer null, ?\Closure $cloner null)
  41.     {
  42.         $this->__initializer__ $initializer;
  43.         $this->__cloner__      $cloner;
  44.     }
  45.     /**
  46.      * 
  47.      * @return array
  48.      */
  49.     public function __sleep()
  50.     {
  51.         if ($this->__isInitialized__) {
  52.             return ['__isInitialized__''lead''photoCaption''photoAlt''category''categories''rated''promoted''popular''draft''title''type''photo''video''user''authors''stats''comments''elements''commentAllowed''tags''id''createdAt''updatedAt''siteId''published''publishedAt''version''skipVersion''current''currentVersion''popularity''route''slug''deletable''deletableAt''deletableBy''editable''editableAt''editableBy''parentId''enabled''pendingLogs''pending''createdBy''updatedBy''interested''mainPage''products''seoMetadata''reviews'];
  53.         }
  54.         return ['__isInitialized__''lead''photoCaption''photoAlt''category''categories''rated''promoted''popular''draft''title''type''photo''video''user''authors''stats''comments''elements''commentAllowed''tags''id''createdAt''updatedAt''siteId''published''publishedAt''version''skipVersion''current''currentVersion''popularity''route''slug''deletable''deletableAt''deletableBy''editable''editableAt''editableBy''parentId''enabled''pendingLogs''pending''createdBy''updatedBy''interested''mainPage''products''seoMetadata''reviews'];
  55.     }
  56.     /**
  57.      * 
  58.      */
  59.     public function __wakeup()
  60.     {
  61.         if ( ! $this->__isInitialized__) {
  62.             $this->__initializer__ = function (Article $proxy) {
  63.                 $proxy->__setInitializer(null);
  64.                 $proxy->__setCloner(null);
  65.                 $existingProperties get_object_vars($proxy);
  66.                 foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
  67.                     if ( ! array_key_exists($property$existingProperties)) {
  68.                         $proxy->$property $defaultValue;
  69.                     }
  70.                 }
  71.             };
  72.         }
  73.     }
  74.     /**
  75.      * {@inheritDoc}
  76.      */
  77.     public function __clone()
  78.     {
  79.         $this->__cloner__ && $this->__cloner__->__invoke($this'__clone', []);
  80.         parent::__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.     /**
  149.      * {@inheritDoc}
  150.      */
  151.     public function getCategory(): ?\Hitso\Bundle\ContentBundle\Entity\Category
  152.     {
  153.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCategory', []);
  154.         return parent::getCategory();
  155.     }
  156.     /**
  157.      * {@inheritDoc}
  158.      */
  159.     public function setCategory(\Hitso\Bundle\ContentBundle\Entity\Category $category NULL): \Hitso\Bundle\ContentBundle\Entity\Article
  160.     {
  161.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCategory', [$category]);
  162.         return parent::setCategory($category);
  163.     }
  164.     /**
  165.      * {@inheritDoc}
  166.      */
  167.     public function getCategories(): \Doctrine\Common\Collections\Collection
  168.     {
  169.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCategories', []);
  170.         return parent::getCategories();
  171.     }
  172.     /**
  173.      * {@inheritDoc}
  174.      */
  175.     public function setCategories(\Doctrine\Common\Collections\Collection $categories): \Hitso\Bundle\ContentBundle\Entity\Article
  176.     {
  177.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCategories', [$categories]);
  178.         return parent::setCategories($categories);
  179.     }
  180.     /**
  181.      * {@inheritDoc}
  182.      */
  183.     public function getLead(): ?string
  184.     {
  185.         $this->__initializer__ && $this->__initializer__->__invoke($this'getLead', []);
  186.         return parent::getLead();
  187.     }
  188.     /**
  189.      * {@inheritDoc}
  190.      */
  191.     public function setLead(?string $lead): \Hitso\Bundle\ContentBundle\Entity\Article
  192.     {
  193.         $this->__initializer__ && $this->__initializer__->__invoke($this'setLead', [$lead]);
  194.         return parent::setLead($lead);
  195.     }
  196.     /**
  197.      * {@inheritDoc}
  198.      */
  199.     public function getPhotoCaption(): ?string
  200.     {
  201.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPhotoCaption', []);
  202.         return parent::getPhotoCaption();
  203.     }
  204.     /**
  205.      * {@inheritDoc}
  206.      */
  207.     public function setPhotoCaption(?string $photoCaption): \Hitso\Bundle\ContentBundle\Entity\Article
  208.     {
  209.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPhotoCaption', [$photoCaption]);
  210.         return parent::setPhotoCaption($photoCaption);
  211.     }
  212.     /**
  213.      * {@inheritDoc}
  214.      */
  215.     public function getPhotoAlt(): ?string
  216.     {
  217.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPhotoAlt', []);
  218.         return parent::getPhotoAlt();
  219.     }
  220.     /**
  221.      * {@inheritDoc}
  222.      */
  223.     public function setPhotoAlt(string $photoAlt NULL): \Hitso\Bundle\ContentBundle\Entity\Article
  224.     {
  225.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPhotoAlt', [$photoAlt]);
  226.         return parent::setPhotoAlt($photoAlt);
  227.     }
  228.     /**
  229.      * {@inheritDoc}
  230.      */
  231.     public function getRelatedArticles(int $limit): \Doctrine\Common\Collections\Collection
  232.     {
  233.         $this->__initializer__ && $this->__initializer__->__invoke($this'getRelatedArticles', [$limit]);
  234.         return parent::getRelatedArticles($limit);
  235.     }
  236.     /**
  237.      * {@inheritDoc}
  238.      */
  239.     public function hasElement(string $type): bool
  240.     {
  241.         $this->__initializer__ && $this->__initializer__->__invoke($this'hasElement', [$type]);
  242.         return parent::hasElement($type);
  243.     }
  244.     /**
  245.      * {@inheritDoc}
  246.      */
  247.     public function onPreUpdate(): void
  248.     {
  249.         $this->__initializer__ && $this->__initializer__->__invoke($this'onPreUpdate', []);
  250.         parent::onPreUpdate();
  251.     }
  252.     /**
  253.      * {@inheritDoc}
  254.      */
  255.     public function isRated(): bool
  256.     {
  257.         $this->__initializer__ && $this->__initializer__->__invoke($this'isRated', []);
  258.         return parent::isRated();
  259.     }
  260.     /**
  261.      * {@inheritDoc}
  262.      */
  263.     public function setRated(bool $rated): \Hitso\Bundle\ContentBundle\Entity\Content
  264.     {
  265.         $this->__initializer__ && $this->__initializer__->__invoke($this'setRated', [$rated]);
  266.         return parent::setRated($rated);
  267.     }
  268.     /**
  269.      * {@inheritDoc}
  270.      */
  271.     public function isPromoted(): bool
  272.     {
  273.         $this->__initializer__ && $this->__initializer__->__invoke($this'isPromoted', []);
  274.         return parent::isPromoted();
  275.     }
  276.     /**
  277.      * {@inheritDoc}
  278.      */
  279.     public function setPromoted(bool $promoted): \Hitso\Bundle\ContentBundle\Entity\Content
  280.     {
  281.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPromoted', [$promoted]);
  282.         return parent::setPromoted($promoted);
  283.     }
  284.     /**
  285.      * {@inheritDoc}
  286.      */
  287.     public function isPopular(): bool
  288.     {
  289.         $this->__initializer__ && $this->__initializer__->__invoke($this'isPopular', []);
  290.         return parent::isPopular();
  291.     }
  292.     /**
  293.      * {@inheritDoc}
  294.      */
  295.     public function setPopular(bool $popular): \Hitso\Bundle\ContentBundle\Entity\Content
  296.     {
  297.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPopular', [$popular]);
  298.         return parent::setPopular($popular);
  299.     }
  300.     /**
  301.      * {@inheritDoc}
  302.      */
  303.     public function getTitle(): ?string
  304.     {
  305.         $this->__initializer__ && $this->__initializer__->__invoke($this'getTitle', []);
  306.         return parent::getTitle();
  307.     }
  308.     /**
  309.      * {@inheritDoc}
  310.      */
  311.     public function setTitle(string $title): \Hitso\Bundle\ContentBundle\Entity\Content
  312.     {
  313.         $this->__initializer__ && $this->__initializer__->__invoke($this'setTitle', [$title]);
  314.         return parent::setTitle($title);
  315.     }
  316.     /**
  317.      * {@inheritDoc}
  318.      */
  319.     public function getVideo(): ?string
  320.     {
  321.         $this->__initializer__ && $this->__initializer__->__invoke($this'getVideo', []);
  322.         return parent::getVideo();
  323.     }
  324.     /**
  325.      * {@inheritDoc}
  326.      */
  327.     public function setVideo(?string $video): \Hitso\Bundle\ContentBundle\Entity\Content
  328.     {
  329.         $this->__initializer__ && $this->__initializer__->__invoke($this'setVideo', [$video]);
  330.         return parent::setVideo($video);
  331.     }
  332.     /**
  333.      * {@inheritDoc}
  334.      */
  335.     public function getSlug(): ?string
  336.     {
  337.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSlug', []);
  338.         return parent::getSlug();
  339.     }
  340.     /**
  341.      * {@inheritDoc}
  342.      */
  343.     public function getType(): ?string
  344.     {
  345.         $this->__initializer__ && $this->__initializer__->__invoke($this'getType', []);
  346.         return parent::getType();
  347.     }
  348.     /**
  349.      * {@inheritDoc}
  350.      */
  351.     public function setType(string $type): \Hitso\Bundle\ContentBundle\Entity\Content
  352.     {
  353.         $this->__initializer__ && $this->__initializer__->__invoke($this'setType', [$type]);
  354.         return parent::setType($type);
  355.     }
  356.     /**
  357.      * {@inheritDoc}
  358.      */
  359.     public function isDraft(): bool
  360.     {
  361.         $this->__initializer__ && $this->__initializer__->__invoke($this'isDraft', []);
  362.         return parent::isDraft();
  363.     }
  364.     /**
  365.      * {@inheritDoc}
  366.      */
  367.     public function setDraft(bool $draft): \Hitso\Bundle\ContentBundle\Entity\Content
  368.     {
  369.         $this->__initializer__ && $this->__initializer__->__invoke($this'setDraft', [$draft]);
  370.         return parent::setDraft($draft);
  371.     }
  372.     /**
  373.      * {@inheritDoc}
  374.      */
  375.     public function getPhoto(): ?\Hitso\Bundle\FileManagerBundle\Entity\File
  376.     {
  377.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPhoto', []);
  378.         return parent::getPhoto();
  379.     }
  380.     /**
  381.      * {@inheritDoc}
  382.      */
  383.     public function setPhoto(?\Hitso\Bundle\FileManagerBundle\Entity\File $photo): \Hitso\Bundle\ContentBundle\Entity\Content
  384.     {
  385.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPhoto', [$photo]);
  386.         return parent::setPhoto($photo);
  387.     }
  388.     /**
  389.      * {@inheritDoc}
  390.      */
  391.     public function getUser(): ?\Hitso\Bundle\CommonBundle\Entity\User
  392.     {
  393.         $this->__initializer__ && $this->__initializer__->__invoke($this'getUser', []);
  394.         return parent::getUser();
  395.     }
  396.     /**
  397.      * {@inheritDoc}
  398.      */
  399.     public function setUser(\Hitso\Bundle\CommonBundle\Entity\User $user): \Hitso\Bundle\ContentBundle\Entity\Content
  400.     {
  401.         $this->__initializer__ && $this->__initializer__->__invoke($this'setUser', [$user]);
  402.         return parent::setUser($user);
  403.     }
  404.     /**
  405.      * {@inheritDoc}
  406.      */
  407.     public function getStats(): \Doctrine\Common\Collections\Collection
  408.     {
  409.         $this->__initializer__ && $this->__initializer__->__invoke($this'getStats', []);
  410.         return parent::getStats();
  411.     }
  412.     /**
  413.      * {@inheritDoc}
  414.      */
  415.     public function addStat(\Hitso\Bundle\ContentBundle\Entity\Stat $stat): \Hitso\Bundle\ContentBundle\Entity\Content
  416.     {
  417.         $this->__initializer__ && $this->__initializer__->__invoke($this'addStat', [$stat]);
  418.         return parent::addStat($stat);
  419.     }
  420.     /**
  421.      * {@inheritDoc}
  422.      */
  423.     public function removeStat(\Hitso\Bundle\ContentBundle\Entity\Stat $stat): \Hitso\Bundle\ContentBundle\Entity\Content
  424.     {
  425.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeStat', [$stat]);
  426.         return parent::removeStat($stat);
  427.     }
  428.     /**
  429.      * {@inheritDoc}
  430.      */
  431.     public function addComment(\Hitso\Bundle\ContentBundle\Entity\Comment $comment): \Hitso\Bundle\ContentBundle\Entity\Content
  432.     {
  433.         $this->__initializer__ && $this->__initializer__->__invoke($this'addComment', [$comment]);
  434.         return parent::addComment($comment);
  435.     }
  436.     /**
  437.      * {@inheritDoc}
  438.      */
  439.     public function removeComment(\Hitso\Bundle\ContentBundle\Entity\Comment $comment): void
  440.     {
  441.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeComment', [$comment]);
  442.         parent::removeComment($comment);
  443.     }
  444.     /**
  445.      * {@inheritDoc}
  446.      */
  447.     public function getComments(): \Doctrine\Common\Collections\Collection
  448.     {
  449.         $this->__initializer__ && $this->__initializer__->__invoke($this'getComments', []);
  450.         return parent::getComments();
  451.     }
  452.     /**
  453.      * {@inheritDoc}
  454.      */
  455.     public function getElements(): \Doctrine\Common\Collections\Collection
  456.     {
  457.         $this->__initializer__ && $this->__initializer__->__invoke($this'getElements', []);
  458.         return parent::getElements();
  459.     }
  460.     /**
  461.      * {@inheritDoc}
  462.      */
  463.     public function setElements($elements): \Hitso\Bundle\ContentBundle\Entity\Content
  464.     {
  465.         $this->__initializer__ && $this->__initializer__->__invoke($this'setElements', [$elements]);
  466.         return parent::setElements($elements);
  467.     }
  468.     /**
  469.      * {@inheritDoc}
  470.      */
  471.     public function getMarkAsDeletedElements(): \Doctrine\Common\Collections\Collection
  472.     {
  473.         $this->__initializer__ && $this->__initializer__->__invoke($this'getMarkAsDeletedElements', []);
  474.         return parent::getMarkAsDeletedElements();
  475.     }
  476.     /**
  477.      * {@inheritDoc}
  478.      */
  479.     public function getAllElements(): \Doctrine\Common\Collections\Collection
  480.     {
  481.         $this->__initializer__ && $this->__initializer__->__invoke($this'getAllElements', []);
  482.         return parent::getAllElements();
  483.     }
  484.     /**
  485.      * {@inheritDoc}
  486.      */
  487.     public function addElement(\Hitso\Bundle\ContentBundle\Entity\Elements\Element $element): \Hitso\Bundle\ContentBundle\Entity\Content
  488.     {
  489.         $this->__initializer__ && $this->__initializer__->__invoke($this'addElement', [$element]);
  490.         return parent::addElement($element);
  491.     }
  492.     /**
  493.      * {@inheritDoc}
  494.      */
  495.     public function removeElement(\Hitso\Bundle\ContentBundle\Entity\Elements\Element $element): \Hitso\Bundle\ContentBundle\Entity\Content
  496.     {
  497.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeElement', [$element]);
  498.         return parent::removeElement($element);
  499.     }
  500.     /**
  501.      * {@inheritDoc}
  502.      */
  503.     public function getAuthors(): \Doctrine\Common\Collections\Collection
  504.     {
  505.         $this->__initializer__ && $this->__initializer__->__invoke($this'getAuthors', []);
  506.         return parent::getAuthors();
  507.     }
  508.     /**
  509.      * {@inheritDoc}
  510.      */
  511.     public function addAuthor(\Hitso\Bundle\ContentBundle\Entity\ContentAuthor $author): \Hitso\Bundle\ContentBundle\Entity\Content
  512.     {
  513.         $this->__initializer__ && $this->__initializer__->__invoke($this'addAuthor', [$author]);
  514.         return parent::addAuthor($author);
  515.     }
  516.     /**
  517.      * {@inheritDoc}
  518.      */
  519.     public function removeAuthor(\Hitso\Bundle\ContentBundle\Entity\ContentAuthor $author): \Hitso\Bundle\ContentBundle\Entity\Content
  520.     {
  521.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeAuthor', [$author]);
  522.         return parent::removeAuthor($author);
  523.     }
  524.     /**
  525.      * {@inheritDoc}
  526.      */
  527.     public function getEventResourceName(): string
  528.     {
  529.         $this->__initializer__ && $this->__initializer__->__invoke($this'getEventResourceName', []);
  530.         return parent::getEventResourceName();
  531.     }
  532.     /**
  533.      * {@inheritDoc}
  534.      */
  535.     public function isAuthorized(string $token NULL): bool
  536.     {
  537.         $this->__initializer__ && $this->__initializer__->__invoke($this'isAuthorized', [$token]);
  538.         return parent::isAuthorized($token);
  539.     }
  540.     /**
  541.      * {@inheritDoc}
  542.      */
  543.     public function setCommentAllowed($commentAllowed)
  544.     {
  545.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCommentAllowed', [$commentAllowed]);
  546.         return parent::setCommentAllowed($commentAllowed);
  547.     }
  548.     /**
  549.      * {@inheritDoc}
  550.      */
  551.     public function getCommentAllowed()
  552.     {
  553.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCommentAllowed', []);
  554.         return parent::getCommentAllowed();
  555.     }
  556.     /**
  557.      * {@inheritDoc}
  558.      */
  559.     public function getTags(): ?\Doctrine\Common\Collections\Collection
  560.     {
  561.         $this->__initializer__ && $this->__initializer__->__invoke($this'getTags', []);
  562.         return parent::getTags();
  563.     }
  564.     /**
  565.      * {@inheritDoc}
  566.      */
  567.     public function setTags(?\Doctrine\Common\Collections\Collection $tags): void
  568.     {
  569.         $this->__initializer__ && $this->__initializer__->__invoke($this'setTags', [$tags]);
  570.         parent::setTags($tags);
  571.     }
  572.     /**
  573.      * {@inheritDoc}
  574.      */
  575.     public function getId()
  576.     {
  577.         if ($this->__isInitialized__ === false) {
  578.             return (int)  parent::getId();
  579.         }
  580.         $this->__initializer__ && $this->__initializer__->__invoke($this'getId', []);
  581.         return parent::getId();
  582.     }
  583.     /**
  584.      * {@inheritDoc}
  585.      */
  586.     public function getCreatedAt(): ?\DateTime
  587.     {
  588.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCreatedAt', []);
  589.         return parent::getCreatedAt();
  590.     }
  591.     /**
  592.      * {@inheritDoc}
  593.      */
  594.     public function setCreatedAt(?\DateTime $createdAt): \Hitso\Bundle\CommonBundle\Interfaces\Timestampable
  595.     {
  596.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCreatedAt', [$createdAt]);
  597.         return parent::setCreatedAt($createdAt);
  598.     }
  599.     /**
  600.      * {@inheritDoc}
  601.      */
  602.     public function getUpdatedAt(): ?\DateTime
  603.     {
  604.         $this->__initializer__ && $this->__initializer__->__invoke($this'getUpdatedAt', []);
  605.         return parent::getUpdatedAt();
  606.     }
  607.     /**
  608.      * {@inheritDoc}
  609.      */
  610.     public function setUpdatedAt(?\DateTime $updatedAt): \Hitso\Bundle\CommonBundle\Interfaces\Timestampable
  611.     {
  612.         $this->__initializer__ && $this->__initializer__->__invoke($this'setUpdatedAt', [$updatedAt]);
  613.         return parent::setUpdatedAt($updatedAt);
  614.     }
  615.     /**
  616.      * {@inheritDoc}
  617.      */
  618.     public function getCreated(): ?string
  619.     {
  620.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCreated', []);
  621.         return parent::getCreated();
  622.     }
  623.     /**
  624.      * {@inheritDoc}
  625.      */
  626.     public function getUpdated(): ?string
  627.     {
  628.         $this->__initializer__ && $this->__initializer__->__invoke($this'getUpdated', []);
  629.         return parent::getUpdated();
  630.     }
  631.     /**
  632.      * {@inheritDoc}
  633.      */
  634.     public function getSiteId(): ?string
  635.     {
  636.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSiteId', []);
  637.         return parent::getSiteId();
  638.     }
  639.     /**
  640.      * {@inheritDoc}
  641.      */
  642.     public function setSiteId(string $siteId): \Hitso\Bundle\ContentBundle\Entity\Content
  643.     {
  644.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSiteId', [$siteId]);
  645.         return parent::setSiteId($siteId);
  646.     }
  647.     /**
  648.      * {@inheritDoc}
  649.      */
  650.     public function isPublished(): bool
  651.     {
  652.         $this->__initializer__ && $this->__initializer__->__invoke($this'isPublished', []);
  653.         return parent::isPublished();
  654.     }
  655.     /**
  656.      * {@inheritDoc}
  657.      */
  658.     public function setPublished(bool $published): \Hitso\Bundle\ContentBundle\Entity\Content
  659.     {
  660.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPublished', [$published]);
  661.         return parent::setPublished($published);
  662.     }
  663.     /**
  664.      * {@inheritDoc}
  665.      */
  666.     public function getPublishedAt(): ?\DateTimeImmutable
  667.     {
  668.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPublishedAt', []);
  669.         return parent::getPublishedAt();
  670.     }
  671.     /**
  672.      * {@inheritDoc}
  673.      */
  674.     public function setPublishedAt($publishedAt): \Hitso\Bundle\ContentBundle\Entity\Content
  675.     {
  676.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPublishedAt', [$publishedAt]);
  677.         return parent::setPublishedAt($publishedAt);
  678.     }
  679.     /**
  680.      * {@inheritDoc}
  681.      */
  682.     public function getVersion(): int
  683.     {
  684.         $this->__initializer__ && $this->__initializer__->__invoke($this'getVersion', []);
  685.         return parent::getVersion();
  686.     }
  687.     /**
  688.      * {@inheritDoc}
  689.      */
  690.     public function setVersion(int $version): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
  691.     {
  692.         $this->__initializer__ && $this->__initializer__->__invoke($this'setVersion', [$version]);
  693.         return parent::setVersion($version);
  694.     }
  695.     /**
  696.      * {@inheritDoc}
  697.      */
  698.     public function skipVersion(bool $bool true): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
  699.     {
  700.         $this->__initializer__ && $this->__initializer__->__invoke($this'skipVersion', [$bool]);
  701.         return parent::skipVersion($bool);
  702.     }
  703.     /**
  704.      * {@inheritDoc}
  705.      */
  706.     public function shouldSkipVersion(): bool
  707.     {
  708.         $this->__initializer__ && $this->__initializer__->__invoke($this'shouldSkipVersion', []);
  709.         return parent::shouldSkipVersion();
  710.     }
  711.     /**
  712.      * {@inheritDoc}
  713.      */
  714.     public function isSkipVersion(): bool
  715.     {
  716.         $this->__initializer__ && $this->__initializer__->__invoke($this'isSkipVersion', []);
  717.         return parent::isSkipVersion();
  718.     }
  719.     /**
  720.      * {@inheritDoc}
  721.      */
  722.     public function setSkipVersion(bool $skipVersion): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
  723.     {
  724.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSkipVersion', [$skipVersion]);
  725.         return parent::setSkipVersion($skipVersion);
  726.     }
  727.     /**
  728.      * {@inheritDoc}
  729.      */
  730.     public function isCurrent(): bool
  731.     {
  732.         $this->__initializer__ && $this->__initializer__->__invoke($this'isCurrent', []);
  733.         return parent::isCurrent();
  734.     }
  735.     /**
  736.      * {@inheritDoc}
  737.      */
  738.     public function setCurrent(bool $current): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
  739.     {
  740.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCurrent', [$current]);
  741.         return parent::setCurrent($current);
  742.     }
  743.     /**
  744.      * {@inheritDoc}
  745.      */
  746.     public function bumpVersion(): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
  747.     {
  748.         $this->__initializer__ && $this->__initializer__->__invoke($this'bumpVersion', []);
  749.         return parent::bumpVersion();
  750.     }
  751.     /**
  752.      * {@inheritDoc}
  753.      */
  754.     public function getPreviousVersion(): int
  755.     {
  756.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPreviousVersion', []);
  757.         return parent::getPreviousVersion();
  758.     }
  759.     /**
  760.      * {@inheritDoc}
  761.      */
  762.     public function getCurrentVersion(): int
  763.     {
  764.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCurrentVersion', []);
  765.         return parent::getCurrentVersion();
  766.     }
  767.     /**
  768.      * {@inheritDoc}
  769.      */
  770.     public function setCurrentVersion(int $currentVersion): void
  771.     {
  772.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCurrentVersion', [$currentVersion]);
  773.         parent::setCurrentVersion($currentVersion);
  774.     }
  775.     /**
  776.      * {@inheritDoc}
  777.      */
  778.     public function getPopularity(): ?float
  779.     {
  780.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPopularity', []);
  781.         return parent::getPopularity();
  782.     }
  783.     /**
  784.      * {@inheritDoc}
  785.      */
  786.     public function setPopularity(float $popularity): \Hitso\Bundle\ContentBundle\Entity\Content
  787.     {
  788.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPopularity', [$popularity]);
  789.         return parent::setPopularity($popularity);
  790.     }
  791.     /**
  792.      * {@inheritDoc}
  793.      */
  794.     public function setSlug(string $slug NULL)
  795.     {
  796.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSlug', [$slug]);
  797.         return parent::setSlug($slug);
  798.     }
  799.     /**
  800.      * {@inheritDoc}
  801.      */
  802.     public function getRoute(): ?\Hitso\Bundle\RoutingBundle\Entity\Route
  803.     {
  804.         $this->__initializer__ && $this->__initializer__->__invoke($this'getRoute', []);
  805.         return parent::getRoute();
  806.     }
  807.     /**
  808.      * {@inheritDoc}
  809.      */
  810.     public function setRoute(\Hitso\Bundle\RoutingBundle\Entity\Route $route NULL)
  811.     {
  812.         $this->__initializer__ && $this->__initializer__->__invoke($this'setRoute', [$route]);
  813.         return parent::setRoute($route);
  814.     }
  815.     /**
  816.      * {@inheritDoc}
  817.      */
  818.     public function isDeletable(): bool
  819.     {
  820.         $this->__initializer__ && $this->__initializer__->__invoke($this'isDeletable', []);
  821.         return parent::isDeletable();
  822.     }
  823.     /**
  824.      * {@inheritDoc}
  825.      */
  826.     public function setDeletable(?bool $deletable false): void
  827.     {
  828.         $this->__initializer__ && $this->__initializer__->__invoke($this'setDeletable', [$deletable]);
  829.         parent::setDeletable($deletable);
  830.     }
  831.     /**
  832.      * {@inheritDoc}
  833.      */
  834.     public function getDeletableAt(): ?\DateTime
  835.     {
  836.         $this->__initializer__ && $this->__initializer__->__invoke($this'getDeletableAt', []);
  837.         return parent::getDeletableAt();
  838.     }
  839.     /**
  840.      * {@inheritDoc}
  841.      */
  842.     public function setDeletableAt(?\DateTime $deletableAt): void
  843.     {
  844.         $this->__initializer__ && $this->__initializer__->__invoke($this'setDeletableAt', [$deletableAt]);
  845.         parent::setDeletableAt($deletableAt);
  846.     }
  847.     /**
  848.      * {@inheritDoc}
  849.      */
  850.     public function getDeletableBy(): ?\Hitso\Bundle\CommonBundle\Entity\User
  851.     {
  852.         $this->__initializer__ && $this->__initializer__->__invoke($this'getDeletableBy', []);
  853.         return parent::getDeletableBy();
  854.     }
  855.     /**
  856.      * {@inheritDoc}
  857.      */
  858.     public function setDeletableBy(?\Hitso\Bundle\CommonBundle\Entity\User $deletableBy): void
  859.     {
  860.         $this->__initializer__ && $this->__initializer__->__invoke($this'setDeletableBy', [$deletableBy]);
  861.         parent::setDeletableBy($deletableBy);
  862.     }
  863.     /**
  864.      * {@inheritDoc}
  865.      */
  866.     public function isEditable(): bool
  867.     {
  868.         $this->__initializer__ && $this->__initializer__->__invoke($this'isEditable', []);
  869.         return parent::isEditable();
  870.     }
  871.     /**
  872.      * {@inheritDoc}
  873.      */
  874.     public function setEditable(bool $editable): void
  875.     {
  876.         $this->__initializer__ && $this->__initializer__->__invoke($this'setEditable', [$editable]);
  877.         parent::setEditable($editable);
  878.     }
  879.     /**
  880.      * {@inheritDoc}
  881.      */
  882.     public function getEditableAt(): ?\DateTime
  883.     {
  884.         $this->__initializer__ && $this->__initializer__->__invoke($this'getEditableAt', []);
  885.         return parent::getEditableAt();
  886.     }
  887.     /**
  888.      * {@inheritDoc}
  889.      */
  890.     public function setEditableAt(?\DateTime $editableAt): void
  891.     {
  892.         $this->__initializer__ && $this->__initializer__->__invoke($this'setEditableAt', [$editableAt]);
  893.         parent::setEditableAt($editableAt);
  894.     }
  895.     /**
  896.      * {@inheritDoc}
  897.      */
  898.     public function getEditableBy(): ?\Hitso\Bundle\CommonBundle\Entity\User
  899.     {
  900.         $this->__initializer__ && $this->__initializer__->__invoke($this'getEditableBy', []);
  901.         return parent::getEditableBy();
  902.     }
  903.     /**
  904.      * {@inheritDoc}
  905.      */
  906.     public function setEditableBy(?\Hitso\Bundle\CommonBundle\Entity\User $editableBy): void
  907.     {
  908.         $this->__initializer__ && $this->__initializer__->__invoke($this'setEditableBy', [$editableBy]);
  909.         parent::setEditableBy($editableBy);
  910.     }
  911.     /**
  912.      * {@inheritDoc}
  913.      */
  914.     public function getParentId(): ?int
  915.     {
  916.         $this->__initializer__ && $this->__initializer__->__invoke($this'getParentId', []);
  917.         return parent::getParentId();
  918.     }
  919.     /**
  920.      * {@inheritDoc}
  921.      */
  922.     public function setParentId(int $parentId NULL): void
  923.     {
  924.         $this->__initializer__ && $this->__initializer__->__invoke($this'setParentId', [$parentId]);
  925.         parent::setParentId($parentId);
  926.     }
  927.     /**
  928.      * {@inheritDoc}
  929.      */
  930.     public function isEnabled(): bool
  931.     {
  932.         $this->__initializer__ && $this->__initializer__->__invoke($this'isEnabled', []);
  933.         return parent::isEnabled();
  934.     }
  935.     /**
  936.      * {@inheritDoc}
  937.      */
  938.     public function setEnabled(bool $enabled true): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
  939.     {
  940.         $this->__initializer__ && $this->__initializer__->__invoke($this'setEnabled', [$enabled]);
  941.         return parent::setEnabled($enabled);
  942.     }
  943.     /**
  944.      * {@inheritDoc}
  945.      */
  946.     public function getPendingLogs(): int
  947.     {
  948.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPendingLogs', []);
  949.         return parent::getPendingLogs();
  950.     }
  951.     /**
  952.      * {@inheritDoc}
  953.      */
  954.     public function setPendingLogs(int $pendingLogs): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
  955.     {
  956.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPendingLogs', [$pendingLogs]);
  957.         return parent::setPendingLogs($pendingLogs);
  958.     }
  959.     /**
  960.      * {@inheritDoc}
  961.      */
  962.     public function isPending(): bool
  963.     {
  964.         $this->__initializer__ && $this->__initializer__->__invoke($this'isPending', []);
  965.         return parent::isPending();
  966.     }
  967.     /**
  968.      * {@inheritDoc}
  969.      */
  970.     public function setPending(bool $pending): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
  971.     {
  972.         $this->__initializer__ && $this->__initializer__->__invoke($this'setPending', [$pending]);
  973.         return parent::setPending($pending);
  974.     }
  975.     /**
  976.      * {@inheritDoc}
  977.      */
  978.     public function recalculatePendingLogs($changeLogsPending): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
  979.     {
  980.         $this->__initializer__ && $this->__initializer__->__invoke($this'recalculatePendingLogs', [$changeLogsPending]);
  981.         return parent::recalculatePendingLogs($changeLogsPending);
  982.     }
  983.     /**
  984.      * {@inheritDoc}
  985.      */
  986.     public function recalculatePendingLogsByCounter(int $changeLogsPendingCounter): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
  987.     {
  988.         $this->__initializer__ && $this->__initializer__->__invoke($this'recalculatePendingLogsByCounter', [$changeLogsPendingCounter]);
  989.         return parent::recalculatePendingLogsByCounter($changeLogsPendingCounter);
  990.     }
  991.     /**
  992.      * {@inheritDoc}
  993.      */
  994.     public function setCreatedBy($createdBy)
  995.     {
  996.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCreatedBy', [$createdBy]);
  997.         return parent::setCreatedBy($createdBy);
  998.     }
  999.     /**
  1000.      * {@inheritDoc}
  1001.      */
  1002.     public function getCreatedBy()
  1003.     {
  1004.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCreatedBy', []);
  1005.         return parent::getCreatedBy();
  1006.     }
  1007.     /**
  1008.      * {@inheritDoc}
  1009.      */
  1010.     public function setUpdatedBy($updatedBy)
  1011.     {
  1012.         $this->__initializer__ && $this->__initializer__->__invoke($this'setUpdatedBy', [$updatedBy]);
  1013.         return parent::setUpdatedBy($updatedBy);
  1014.     }
  1015.     /**
  1016.      * {@inheritDoc}
  1017.      */
  1018.     public function getUpdatedBy()
  1019.     {
  1020.         $this->__initializer__ && $this->__initializer__->__invoke($this'getUpdatedBy', []);
  1021.         return parent::getUpdatedBy();
  1022.     }
  1023.     /**
  1024.      * {@inheritDoc}
  1025.      */
  1026.     public function isInterested(): ?bool
  1027.     {
  1028.         $this->__initializer__ && $this->__initializer__->__invoke($this'isInterested', []);
  1029.         return parent::isInterested();
  1030.     }
  1031.     /**
  1032.      * {@inheritDoc}
  1033.      */
  1034.     public function setInterested(?bool $interested): \Hitso\Bundle\ContentBundle\Entity\Content
  1035.     {
  1036.         $this->__initializer__ && $this->__initializer__->__invoke($this'setInterested', [$interested]);
  1037.         return parent::setInterested($interested);
  1038.     }
  1039.     /**
  1040.      * {@inheritDoc}
  1041.      */
  1042.     public function isMainPage(): ?bool
  1043.     {
  1044.         $this->__initializer__ && $this->__initializer__->__invoke($this'isMainPage', []);
  1045.         return parent::isMainPage();
  1046.     }
  1047.     /**
  1048.      * {@inheritDoc}
  1049.      */
  1050.     public function setMainPage(?bool $mainPage): \Hitso\Bundle\ContentBundle\Entity\Content
  1051.     {
  1052.         $this->__initializer__ && $this->__initializer__->__invoke($this'setMainPage', [$mainPage]);
  1053.         return parent::setMainPage($mainPage);
  1054.     }
  1055.     /**
  1056.      * {@inheritDoc}
  1057.      */
  1058.     public function getProducts(): \Doctrine\Common\Collections\Collection
  1059.     {
  1060.         $this->__initializer__ && $this->__initializer__->__invoke($this'getProducts', []);
  1061.         return parent::getProducts();
  1062.     }
  1063.     /**
  1064.      * {@inheritDoc}
  1065.      */
  1066.     public function setProducts(\Doctrine\Common\Collections\Collection $products NULL): \Hitso\Bundle\ContentBundle\Entity\Content
  1067.     {
  1068.         $this->__initializer__ && $this->__initializer__->__invoke($this'setProducts', [$products]);
  1069.         return parent::setProducts($products);
  1070.     }
  1071.     /**
  1072.      * {@inheritDoc}
  1073.      */
  1074.     public function addProduct(\Hitso\Bundle\CatalogBundle\Entity\Product $product): \Hitso\Bundle\ContentBundle\Entity\Content
  1075.     {
  1076.         $this->__initializer__ && $this->__initializer__->__invoke($this'addProduct', [$product]);
  1077.         return parent::addProduct($product);
  1078.     }
  1079.     /**
  1080.      * {@inheritDoc}
  1081.      */
  1082.     public function removeProduct(\Hitso\Bundle\CatalogBundle\Entity\Product $product): \Hitso\Bundle\ContentBundle\Entity\Content
  1083.     {
  1084.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeProduct', [$product]);
  1085.         return parent::removeProduct($product);
  1086.     }
  1087.     /**
  1088.      * {@inheritDoc}
  1089.      */
  1090.     public function getSeoMetadata(): ?\Hitso\Bundle\SeoBundle\Entity\SeoMetadata
  1091.     {
  1092.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSeoMetadata', []);
  1093.         return parent::getSeoMetadata();
  1094.     }
  1095.     /**
  1096.      * {@inheritDoc}
  1097.      */
  1098.     public function setSeoMetadata($seoMetadata)
  1099.     {
  1100.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSeoMetadata', [$seoMetadata]);
  1101.         return parent::setSeoMetadata($seoMetadata);
  1102.     }
  1103.     /**
  1104.      * {@inheritDoc}
  1105.      */
  1106.     public function addReview(\Hitso\Bundle\ContentBundle\Entity\ArticleReview $review)
  1107.     {
  1108.         $this->__initializer__ && $this->__initializer__->__invoke($this'addReview', [$review]);
  1109.         return parent::addReview($review);
  1110.     }
  1111.     /**
  1112.      * {@inheritDoc}
  1113.      */
  1114.     public function getReviews(): ?\Doctrine\Common\Collections\Collection
  1115.     {
  1116.         $this->__initializer__ && $this->__initializer__->__invoke($this'getReviews', []);
  1117.         return parent::getReviews();
  1118.     }
  1119.     /**
  1120.      * {@inheritDoc}
  1121.      */
  1122.     public function removeReview(\Hitso\Bundle\ContentBundle\Entity\ArticleReview $review)
  1123.     {
  1124.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeReview', [$review]);
  1125.         return parent::removeReview($review);
  1126.     }
  1127. }