<?php
namespace Proxies\__CG__\Hitso\Bundle\ContentBundle\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Article extends \Hitso\Bundle\ContentBundle\Entity\Article implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
* initialization process and an array of ordered parameters that were passed to that method.
*
* @see \Doctrine\Common\Proxy\Proxy::__setInitializer
*/
public $__initializer__;
/**
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
*
* @see \Doctrine\Common\Proxy\Proxy::__setCloner
*/
public $__cloner__;
/**
* @var boolean flag indicating if this object was already initialized
*
* @see \Doctrine\Persistence\Proxy::__isInitialized
*/
public $__isInitialized__ = false;
/**
* @var array<string, null> properties to be lazy loaded, indexed by property name
*/
public static $lazyPropertiesNames = array (
);
/**
* @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
*
* @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
*/
public static $lazyPropertiesDefaults = array (
);
public function __construct(?\Closure $initializer = null, ?\Closure $cloner = null)
{
$this->__initializer__ = $initializer;
$this->__cloner__ = $cloner;
}
/**
*
* @return array
*/
public function __sleep()
{
if ($this->__isInitialized__) {
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'];
}
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'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Article $proxy) {
$proxy->__setInitializer(null);
$proxy->__setCloner(null);
$existingProperties = get_object_vars($proxy);
foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
if ( ! array_key_exists($property, $existingProperties)) {
$proxy->$property = $defaultValue;
}
}
};
}
}
/**
* {@inheritDoc}
*/
public function __clone()
{
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
parent::__clone();
}
/**
* Forces initialization of the proxy
*/
public function __load()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __isInitialized()
{
return $this->__isInitialized__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitialized($initialized)
{
$this->__isInitialized__ = $initialized;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitializer(\Closure $initializer = null)
{
$this->__initializer__ = $initializer;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __getInitializer()
{
return $this->__initializer__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setCloner(\Closure $cloner = null)
{
$this->__cloner__ = $cloner;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific cloning logic
*/
public function __getCloner()
{
return $this->__cloner__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
* @deprecated no longer in use - generated code now relies on internal components rather than generated public API
* @static
*/
public function __getLazyProperties()
{
return self::$lazyPropertiesDefaults;
}
/**
* {@inheritDoc}
*/
public function getCategory(): ?\Hitso\Bundle\ContentBundle\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategory', []);
return parent::getCategory();
}
/**
* {@inheritDoc}
*/
public function setCategory(\Hitso\Bundle\ContentBundle\Entity\Category $category = NULL): \Hitso\Bundle\ContentBundle\Entity\Article
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCategory', [$category]);
return parent::setCategory($category);
}
/**
* {@inheritDoc}
*/
public function getCategories(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategories', []);
return parent::getCategories();
}
/**
* {@inheritDoc}
*/
public function setCategories(\Doctrine\Common\Collections\Collection $categories): \Hitso\Bundle\ContentBundle\Entity\Article
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCategories', [$categories]);
return parent::setCategories($categories);
}
/**
* {@inheritDoc}
*/
public function getLead(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLead', []);
return parent::getLead();
}
/**
* {@inheritDoc}
*/
public function setLead(?string $lead): \Hitso\Bundle\ContentBundle\Entity\Article
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLead', [$lead]);
return parent::setLead($lead);
}
/**
* {@inheritDoc}
*/
public function getPhotoCaption(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhotoCaption', []);
return parent::getPhotoCaption();
}
/**
* {@inheritDoc}
*/
public function setPhotoCaption(?string $photoCaption): \Hitso\Bundle\ContentBundle\Entity\Article
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhotoCaption', [$photoCaption]);
return parent::setPhotoCaption($photoCaption);
}
/**
* {@inheritDoc}
*/
public function getPhotoAlt(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhotoAlt', []);
return parent::getPhotoAlt();
}
/**
* {@inheritDoc}
*/
public function setPhotoAlt(string $photoAlt = NULL): \Hitso\Bundle\ContentBundle\Entity\Article
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhotoAlt', [$photoAlt]);
return parent::setPhotoAlt($photoAlt);
}
/**
* {@inheritDoc}
*/
public function getRelatedArticles(int $limit): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRelatedArticles', [$limit]);
return parent::getRelatedArticles($limit);
}
/**
* {@inheritDoc}
*/
public function hasElement(string $type): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasElement', [$type]);
return parent::hasElement($type);
}
/**
* {@inheritDoc}
*/
public function onPreUpdate(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'onPreUpdate', []);
parent::onPreUpdate();
}
/**
* {@inheritDoc}
*/
public function isRated(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isRated', []);
return parent::isRated();
}
/**
* {@inheritDoc}
*/
public function setRated(bool $rated): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRated', [$rated]);
return parent::setRated($rated);
}
/**
* {@inheritDoc}
*/
public function isPromoted(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPromoted', []);
return parent::isPromoted();
}
/**
* {@inheritDoc}
*/
public function setPromoted(bool $promoted): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPromoted', [$promoted]);
return parent::setPromoted($promoted);
}
/**
* {@inheritDoc}
*/
public function isPopular(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPopular', []);
return parent::isPopular();
}
/**
* {@inheritDoc}
*/
public function setPopular(bool $popular): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPopular', [$popular]);
return parent::setPopular($popular);
}
/**
* {@inheritDoc}
*/
public function getTitle(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTitle', []);
return parent::getTitle();
}
/**
* {@inheritDoc}
*/
public function setTitle(string $title): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTitle', [$title]);
return parent::setTitle($title);
}
/**
* {@inheritDoc}
*/
public function getVideo(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getVideo', []);
return parent::getVideo();
}
/**
* {@inheritDoc}
*/
public function setVideo(?string $video): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setVideo', [$video]);
return parent::setVideo($video);
}
/**
* {@inheritDoc}
*/
public function getSlug(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSlug', []);
return parent::getSlug();
}
/**
* {@inheritDoc}
*/
public function getType(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
return parent::getType();
}
/**
* {@inheritDoc}
*/
public function setType(string $type): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
return parent::setType($type);
}
/**
* {@inheritDoc}
*/
public function isDraft(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isDraft', []);
return parent::isDraft();
}
/**
* {@inheritDoc}
*/
public function setDraft(bool $draft): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDraft', [$draft]);
return parent::setDraft($draft);
}
/**
* {@inheritDoc}
*/
public function getPhoto(): ?\Hitso\Bundle\FileManagerBundle\Entity\File
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPhoto', []);
return parent::getPhoto();
}
/**
* {@inheritDoc}
*/
public function setPhoto(?\Hitso\Bundle\FileManagerBundle\Entity\File $photo): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPhoto', [$photo]);
return parent::setPhoto($photo);
}
/**
* {@inheritDoc}
*/
public function getUser(): ?\Hitso\Bundle\CommonBundle\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
return parent::getUser();
}
/**
* {@inheritDoc}
*/
public function setUser(\Hitso\Bundle\CommonBundle\Entity\User $user): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
return parent::setUser($user);
}
/**
* {@inheritDoc}
*/
public function getStats(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStats', []);
return parent::getStats();
}
/**
* {@inheritDoc}
*/
public function addStat(\Hitso\Bundle\ContentBundle\Entity\Stat $stat): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addStat', [$stat]);
return parent::addStat($stat);
}
/**
* {@inheritDoc}
*/
public function removeStat(\Hitso\Bundle\ContentBundle\Entity\Stat $stat): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeStat', [$stat]);
return parent::removeStat($stat);
}
/**
* {@inheritDoc}
*/
public function addComment(\Hitso\Bundle\ContentBundle\Entity\Comment $comment): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addComment', [$comment]);
return parent::addComment($comment);
}
/**
* {@inheritDoc}
*/
public function removeComment(\Hitso\Bundle\ContentBundle\Entity\Comment $comment): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeComment', [$comment]);
parent::removeComment($comment);
}
/**
* {@inheritDoc}
*/
public function getComments(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getComments', []);
return parent::getComments();
}
/**
* {@inheritDoc}
*/
public function getElements(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElements', []);
return parent::getElements();
}
/**
* {@inheritDoc}
*/
public function setElements($elements): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setElements', [$elements]);
return parent::setElements($elements);
}
/**
* {@inheritDoc}
*/
public function getMarkAsDeletedElements(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMarkAsDeletedElements', []);
return parent::getMarkAsDeletedElements();
}
/**
* {@inheritDoc}
*/
public function getAllElements(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAllElements', []);
return parent::getAllElements();
}
/**
* {@inheritDoc}
*/
public function addElement(\Hitso\Bundle\ContentBundle\Entity\Elements\Element $element): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addElement', [$element]);
return parent::addElement($element);
}
/**
* {@inheritDoc}
*/
public function removeElement(\Hitso\Bundle\ContentBundle\Entity\Elements\Element $element): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeElement', [$element]);
return parent::removeElement($element);
}
/**
* {@inheritDoc}
*/
public function getAuthors(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAuthors', []);
return parent::getAuthors();
}
/**
* {@inheritDoc}
*/
public function addAuthor(\Hitso\Bundle\ContentBundle\Entity\ContentAuthor $author): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addAuthor', [$author]);
return parent::addAuthor($author);
}
/**
* {@inheritDoc}
*/
public function removeAuthor(\Hitso\Bundle\ContentBundle\Entity\ContentAuthor $author): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeAuthor', [$author]);
return parent::removeAuthor($author);
}
/**
* {@inheritDoc}
*/
public function getEventResourceName(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEventResourceName', []);
return parent::getEventResourceName();
}
/**
* {@inheritDoc}
*/
public function isAuthorized(string $token = NULL): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isAuthorized', [$token]);
return parent::isAuthorized($token);
}
/**
* {@inheritDoc}
*/
public function setCommentAllowed($commentAllowed)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCommentAllowed', [$commentAllowed]);
return parent::setCommentAllowed($commentAllowed);
}
/**
* {@inheritDoc}
*/
public function getCommentAllowed()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCommentAllowed', []);
return parent::getCommentAllowed();
}
/**
* {@inheritDoc}
*/
public function getTags(): ?\Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTags', []);
return parent::getTags();
}
/**
* {@inheritDoc}
*/
public function setTags(?\Doctrine\Common\Collections\Collection $tags): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTags', [$tags]);
parent::setTags($tags);
}
/**
* {@inheritDoc}
*/
public function getId()
{
if ($this->__isInitialized__ === false) {
return (int) parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getCreatedAt(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(?\DateTime $createdAt): \Hitso\Bundle\CommonBundle\Interfaces\Timestampable
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
return parent::setCreatedAt($createdAt);
}
/**
* {@inheritDoc}
*/
public function getUpdatedAt(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
return parent::getUpdatedAt();
}
/**
* {@inheritDoc}
*/
public function setUpdatedAt(?\DateTime $updatedAt): \Hitso\Bundle\CommonBundle\Interfaces\Timestampable
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
return parent::setUpdatedAt($updatedAt);
}
/**
* {@inheritDoc}
*/
public function getCreated(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
return parent::getCreated();
}
/**
* {@inheritDoc}
*/
public function getUpdated(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
return parent::getUpdated();
}
/**
* {@inheritDoc}
*/
public function getSiteId(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSiteId', []);
return parent::getSiteId();
}
/**
* {@inheritDoc}
*/
public function setSiteId(string $siteId): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSiteId', [$siteId]);
return parent::setSiteId($siteId);
}
/**
* {@inheritDoc}
*/
public function isPublished(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPublished', []);
return parent::isPublished();
}
/**
* {@inheritDoc}
*/
public function setPublished(bool $published): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPublished', [$published]);
return parent::setPublished($published);
}
/**
* {@inheritDoc}
*/
public function getPublishedAt(): ?\DateTimeImmutable
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPublishedAt', []);
return parent::getPublishedAt();
}
/**
* {@inheritDoc}
*/
public function setPublishedAt($publishedAt): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPublishedAt', [$publishedAt]);
return parent::setPublishedAt($publishedAt);
}
/**
* {@inheritDoc}
*/
public function getVersion(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getVersion', []);
return parent::getVersion();
}
/**
* {@inheritDoc}
*/
public function setVersion(int $version): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setVersion', [$version]);
return parent::setVersion($version);
}
/**
* {@inheritDoc}
*/
public function skipVersion(bool $bool = true): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'skipVersion', [$bool]);
return parent::skipVersion($bool);
}
/**
* {@inheritDoc}
*/
public function shouldSkipVersion(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'shouldSkipVersion', []);
return parent::shouldSkipVersion();
}
/**
* {@inheritDoc}
*/
public function isSkipVersion(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isSkipVersion', []);
return parent::isSkipVersion();
}
/**
* {@inheritDoc}
*/
public function setSkipVersion(bool $skipVersion): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSkipVersion', [$skipVersion]);
return parent::setSkipVersion($skipVersion);
}
/**
* {@inheritDoc}
*/
public function isCurrent(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isCurrent', []);
return parent::isCurrent();
}
/**
* {@inheritDoc}
*/
public function setCurrent(bool $current): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrent', [$current]);
return parent::setCurrent($current);
}
/**
* {@inheritDoc}
*/
public function bumpVersion(): \Hitso\Bundle\CommonBundle\Doctrine\Behaviours\VersionInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'bumpVersion', []);
return parent::bumpVersion();
}
/**
* {@inheritDoc}
*/
public function getPreviousVersion(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPreviousVersion', []);
return parent::getPreviousVersion();
}
/**
* {@inheritDoc}
*/
public function getCurrentVersion(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCurrentVersion', []);
return parent::getCurrentVersion();
}
/**
* {@inheritDoc}
*/
public function setCurrentVersion(int $currentVersion): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrentVersion', [$currentVersion]);
parent::setCurrentVersion($currentVersion);
}
/**
* {@inheritDoc}
*/
public function getPopularity(): ?float
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPopularity', []);
return parent::getPopularity();
}
/**
* {@inheritDoc}
*/
public function setPopularity(float $popularity): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPopularity', [$popularity]);
return parent::setPopularity($popularity);
}
/**
* {@inheritDoc}
*/
public function setSlug(string $slug = NULL)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSlug', [$slug]);
return parent::setSlug($slug);
}
/**
* {@inheritDoc}
*/
public function getRoute(): ?\Hitso\Bundle\RoutingBundle\Entity\Route
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRoute', []);
return parent::getRoute();
}
/**
* {@inheritDoc}
*/
public function setRoute(\Hitso\Bundle\RoutingBundle\Entity\Route $route = NULL)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRoute', [$route]);
return parent::setRoute($route);
}
/**
* {@inheritDoc}
*/
public function isDeletable(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isDeletable', []);
return parent::isDeletable();
}
/**
* {@inheritDoc}
*/
public function setDeletable(?bool $deletable = false): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletable', [$deletable]);
parent::setDeletable($deletable);
}
/**
* {@inheritDoc}
*/
public function getDeletableAt(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeletableAt', []);
return parent::getDeletableAt();
}
/**
* {@inheritDoc}
*/
public function setDeletableAt(?\DateTime $deletableAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletableAt', [$deletableAt]);
parent::setDeletableAt($deletableAt);
}
/**
* {@inheritDoc}
*/
public function getDeletableBy(): ?\Hitso\Bundle\CommonBundle\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeletableBy', []);
return parent::getDeletableBy();
}
/**
* {@inheritDoc}
*/
public function setDeletableBy(?\Hitso\Bundle\CommonBundle\Entity\User $deletableBy): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeletableBy', [$deletableBy]);
parent::setDeletableBy($deletableBy);
}
/**
* {@inheritDoc}
*/
public function isEditable(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isEditable', []);
return parent::isEditable();
}
/**
* {@inheritDoc}
*/
public function setEditable(bool $editable): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEditable', [$editable]);
parent::setEditable($editable);
}
/**
* {@inheritDoc}
*/
public function getEditableAt(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEditableAt', []);
return parent::getEditableAt();
}
/**
* {@inheritDoc}
*/
public function setEditableAt(?\DateTime $editableAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEditableAt', [$editableAt]);
parent::setEditableAt($editableAt);
}
/**
* {@inheritDoc}
*/
public function getEditableBy(): ?\Hitso\Bundle\CommonBundle\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEditableBy', []);
return parent::getEditableBy();
}
/**
* {@inheritDoc}
*/
public function setEditableBy(?\Hitso\Bundle\CommonBundle\Entity\User $editableBy): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEditableBy', [$editableBy]);
parent::setEditableBy($editableBy);
}
/**
* {@inheritDoc}
*/
public function getParentId(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getParentId', []);
return parent::getParentId();
}
/**
* {@inheritDoc}
*/
public function setParentId(int $parentId = NULL): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setParentId', [$parentId]);
parent::setParentId($parentId);
}
/**
* {@inheritDoc}
*/
public function isEnabled(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isEnabled', []);
return parent::isEnabled();
}
/**
* {@inheritDoc}
*/
public function setEnabled(bool $enabled = true): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEnabled', [$enabled]);
return parent::setEnabled($enabled);
}
/**
* {@inheritDoc}
*/
public function getPendingLogs(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPendingLogs', []);
return parent::getPendingLogs();
}
/**
* {@inheritDoc}
*/
public function setPendingLogs(int $pendingLogs): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPendingLogs', [$pendingLogs]);
return parent::setPendingLogs($pendingLogs);
}
/**
* {@inheritDoc}
*/
public function isPending(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPending', []);
return parent::isPending();
}
/**
* {@inheritDoc}
*/
public function setPending(bool $pending): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPending', [$pending]);
return parent::setPending($pending);
}
/**
* {@inheritDoc}
*/
public function recalculatePendingLogs($changeLogsPending): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'recalculatePendingLogs', [$changeLogsPending]);
return parent::recalculatePendingLogs($changeLogsPending);
}
/**
* {@inheritDoc}
*/
public function recalculatePendingLogsByCounter(int $changeLogsPendingCounter): \Hitso\Bundle\CommonBundle\Entity\EntityInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'recalculatePendingLogsByCounter', [$changeLogsPendingCounter]);
return parent::recalculatePendingLogsByCounter($changeLogsPendingCounter);
}
/**
* {@inheritDoc}
*/
public function setCreatedBy($createdBy)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedBy', [$createdBy]);
return parent::setCreatedBy($createdBy);
}
/**
* {@inheritDoc}
*/
public function getCreatedBy()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedBy', []);
return parent::getCreatedBy();
}
/**
* {@inheritDoc}
*/
public function setUpdatedBy($updatedBy)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedBy', [$updatedBy]);
return parent::setUpdatedBy($updatedBy);
}
/**
* {@inheritDoc}
*/
public function getUpdatedBy()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedBy', []);
return parent::getUpdatedBy();
}
/**
* {@inheritDoc}
*/
public function isInterested(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isInterested', []);
return parent::isInterested();
}
/**
* {@inheritDoc}
*/
public function setInterested(?bool $interested): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setInterested', [$interested]);
return parent::setInterested($interested);
}
/**
* {@inheritDoc}
*/
public function isMainPage(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isMainPage', []);
return parent::isMainPage();
}
/**
* {@inheritDoc}
*/
public function setMainPage(?bool $mainPage): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMainPage', [$mainPage]);
return parent::setMainPage($mainPage);
}
/**
* {@inheritDoc}
*/
public function getProducts(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getProducts', []);
return parent::getProducts();
}
/**
* {@inheritDoc}
*/
public function setProducts(\Doctrine\Common\Collections\Collection $products = NULL): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setProducts', [$products]);
return parent::setProducts($products);
}
/**
* {@inheritDoc}
*/
public function addProduct(\Hitso\Bundle\CatalogBundle\Entity\Product $product): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addProduct', [$product]);
return parent::addProduct($product);
}
/**
* {@inheritDoc}
*/
public function removeProduct(\Hitso\Bundle\CatalogBundle\Entity\Product $product): \Hitso\Bundle\ContentBundle\Entity\Content
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeProduct', [$product]);
return parent::removeProduct($product);
}
/**
* {@inheritDoc}
*/
public function getSeoMetadata(): ?\Hitso\Bundle\SeoBundle\Entity\SeoMetadata
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSeoMetadata', []);
return parent::getSeoMetadata();
}
/**
* {@inheritDoc}
*/
public function setSeoMetadata($seoMetadata)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSeoMetadata', [$seoMetadata]);
return parent::setSeoMetadata($seoMetadata);
}
/**
* {@inheritDoc}
*/
public function addReview(\Hitso\Bundle\ContentBundle\Entity\ArticleReview $review)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addReview', [$review]);
return parent::addReview($review);
}
/**
* {@inheritDoc}
*/
public function getReviews(): ?\Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getReviews', []);
return parent::getReviews();
}
/**
* {@inheritDoc}
*/
public function removeReview(\Hitso\Bundle\ContentBundle\Entity\ArticleReview $review)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeReview', [$review]);
return parent::removeReview($review);
}
}