<?php
namespace Proxies\__CG__\EADPlataforma\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Category extends \EADPlataforma\Entity\Category 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__', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'id', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'deleted', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'status', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'order', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'category', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'slug', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'image', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'icon', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'pageColorText', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'description', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'product', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'userDelete', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'typeDelete', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'dateDelete'];
}
return ['__isInitialized__', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'id', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'deleted', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'status', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'order', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'category', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'slug', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'image', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'icon', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'pageColorText', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'description', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'product', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'userDelete', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'typeDelete', '' . "\0" . 'EADPlataforma\\Entity\\Category' . "\0" . 'dateDelete'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Category $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;
}
}
};
}
}
/**
*
*/
public function __clone()
{
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
}
/**
* Forces initialization of the proxy
*/
public function __load(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __isInitialized(): bool
{
return $this->__isInitialized__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitialized($initialized): void
{
$this->__isInitialized__ = $initialized;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitializer(?\Closure $initializer = null): void
{
$this->__initializer__ = $initializer;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __getInitializer(): ?\Closure
{
return $this->__initializer__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setCloner(?\Closure $cloner = null): void
{
$this->__cloner__ = $cloner;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific cloning logic
*/
public function __getCloner(): ?\Closure
{
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(): array
{
return self::$lazyPropertiesDefaults;
}
/**
* {@inheritDoc}
*/
public function getId(): ?int
{
if ($this->__isInitialized__ === false) {
return (int) parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getStatus(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);
return parent::getStatus();
}
/**
* {@inheritDoc}
*/
public function setStatus(int $status): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
return parent::setStatus($status);
}
/**
* {@inheritDoc}
*/
public function getOrder(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrder', []);
return parent::getOrder();
}
/**
* {@inheritDoc}
*/
public function setOrder(int $order): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrder', [$order]);
return parent::setOrder($order);
}
/**
* {@inheritDoc}
*/
public function getCategory(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategory', []);
return parent::getCategory();
}
/**
* {@inheritDoc}
*/
public function setCategory(string $category): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCategory', [$category]);
return parent::setCategory($category);
}
/**
* {@inheritDoc}
*/
public function getSlug(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSlug', []);
return parent::getSlug();
}
/**
* {@inheritDoc}
*/
public function setSlug(string $slug): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSlug', [$slug]);
return parent::setSlug($slug);
}
/**
* {@inheritDoc}
*/
public function getImage(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', []);
return parent::getImage();
}
/**
* {@inheritDoc}
*/
public function setImage(?string $image): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setImage', [$image]);
return parent::setImage($image);
}
/**
* {@inheritDoc}
*/
public function getIcon(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIcon', []);
return parent::getIcon();
}
/**
* {@inheritDoc}
*/
public function setIcon(?string $icon): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIcon', [$icon]);
return parent::setIcon($icon);
}
/**
* {@inheritDoc}
*/
public function getPageColorText(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPageColorText', []);
return parent::getPageColorText();
}
/**
* {@inheritDoc}
*/
public function setPageColorText(?string $pageColorText): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPageColorText', [$pageColorText]);
return parent::setPageColorText($pageColorText);
}
/**
* {@inheritDoc}
*/
public function getDescription(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []);
return parent::getDescription();
}
/**
* {@inheritDoc}
*/
public function setDescription(string $description): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]);
return parent::setDescription($description);
}
/**
* {@inheritDoc}
*/
public function getUserDelete(): ?\EADPlataforma\Entity\User
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserDelete', []);
return parent::getUserDelete();
}
/**
* {@inheritDoc}
*/
public function setUserDelete(?\EADPlataforma\Entity\User $userDelete): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUserDelete', [$userDelete]);
return parent::setUserDelete($userDelete);
}
/**
* {@inheritDoc}
*/
public function getDateDelete($dateFormat = 'Y-m-d H:i:s')
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDateDelete', [$dateFormat]);
return parent::getDateDelete($dateFormat);
}
/**
* {@inheritDoc}
*/
public function setDateDelete($dateDelete): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateDelete', [$dateDelete]);
return parent::setDateDelete($dateDelete);
}
/**
* {@inheritDoc}
*/
public function getProduct(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getProduct', []);
return parent::getProduct();
}
/**
* {@inheritDoc}
*/
public function hasProduct(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasProduct', []);
return parent::hasProduct();
}
/**
* {@inheritDoc}
*/
public function addProduct(\EADPlataforma\Entity\Product $product): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addProduct', [$product]);
return parent::addProduct($product);
}
/**
* {@inheritDoc}
*/
public function removeProduct(\EADPlataforma\Entity\Product $product): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeProduct', [$product]);
return parent::removeProduct($product);
}
/**
* {@inheritDoc}
*/
public function individual(): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'individual', []);
return parent::individual();
}
/**
* {@inheritDoc}
*/
public function cascade(): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'cascade', []);
return parent::cascade();
}
/**
* {@inheritDoc}
*/
public function isOnTrash(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isOnTrash', []);
return parent::isOnTrash();
}
/**
* {@inheritDoc}
*/
public function isDeleted(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isDeleted', []);
return parent::isDeleted();
}
/**
* {@inheritDoc}
*/
public function restore(): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'restore', []);
return parent::restore();
}
/**
* {@inheritDoc}
*/
public function trash(): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'trash', []);
return parent::trash();
}
/**
* {@inheritDoc}
*/
public function delete(): \EADPlataforma\Entity\Category
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'delete', []);
return parent::delete();
}
/**
* {@inheritDoc}
*/
public function toReturn(?bool $addProduct = true)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'toReturn', [$addProduct]);
return parent::toReturn($addProduct);
}
/**
* {@inheritDoc}
*/
public function toReturnApi()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'toReturnApi', []);
return parent::toReturnApi();
}
}