<?php

namespace Proxies\__CG__\App\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class TInventoryCategory extends \App\Entity\TInventoryCategory 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" . 'App\\Entity\\TInventoryCategory' . "\0" . 'id', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'catName', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'status', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'stockCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'stockAdjustCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'salesCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'costOfSalesCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'purchasesTaxCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'salesTaxCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'note', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'item'];
        }

        return ['__isInitialized__', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'id', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'catName', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'status', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'stockCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'stockAdjustCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'salesCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'costOfSalesCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'purchasesTaxCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'salesTaxCoaCode', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'note', '' . "\0" . 'App\\Entity\\TInventoryCategory' . "\0" . 'item'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (TInventoryCategory $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()
    {
        $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 getId(): ?int
    {
        if ($this->__isInitialized__ === false) {
            return (int)  parent::getId();
        }


        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);

        return parent::getId();
    }

    /**
     * {@inheritDoc}
     */
    public function getCatName(): ?string
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCatName', []);

        return parent::getCatName();
    }

    /**
     * {@inheritDoc}
     */
    public function setCatName(?string $catName): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCatName', [$catName]);

        return parent::setCatName($catName);
    }

    /**
     * {@inheritDoc}
     */
    public function getStatus(): ?string
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);

        return parent::getStatus();
    }

    /**
     * {@inheritDoc}
     */
    public function setStatus(?string $status): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);

        return parent::setStatus($status);
    }

    /**
     * {@inheritDoc}
     */
    public function getStockCoaCode(): ?int
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStockCoaCode', []);

        return parent::getStockCoaCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setStockCoaCode(?int $stockCoaCode): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStockCoaCode', [$stockCoaCode]);

        return parent::setStockCoaCode($stockCoaCode);
    }

    /**
     * {@inheritDoc}
     */
    public function getStockAdjustCoaCode(): ?int
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStockAdjustCoaCode', []);

        return parent::getStockAdjustCoaCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setStockAdjustCoaCode(?int $stockAdjustCoaCode): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStockAdjustCoaCode', [$stockAdjustCoaCode]);

        return parent::setStockAdjustCoaCode($stockAdjustCoaCode);
    }

    /**
     * {@inheritDoc}
     */
    public function getSalesCoaCode(): ?int
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSalesCoaCode', []);

        return parent::getSalesCoaCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setSalesCoaCode(?int $salesCoaCode): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSalesCoaCode', [$salesCoaCode]);

        return parent::setSalesCoaCode($salesCoaCode);
    }

    /**
     * {@inheritDoc}
     */
    public function getCostOfSalesCoaCode(): ?int
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCostOfSalesCoaCode', []);

        return parent::getCostOfSalesCoaCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setCostOfSalesCoaCode(?int $costOfSalesCoaCode): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCostOfSalesCoaCode', [$costOfSalesCoaCode]);

        return parent::setCostOfSalesCoaCode($costOfSalesCoaCode);
    }

    /**
     * {@inheritDoc}
     */
    public function getPurchasesTaxCoaCode(): ?int
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPurchasesTaxCoaCode', []);

        return parent::getPurchasesTaxCoaCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setPurchasesTaxCoaCode(?int $purchasesTaxCoaCode): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPurchasesTaxCoaCode', [$purchasesTaxCoaCode]);

        return parent::setPurchasesTaxCoaCode($purchasesTaxCoaCode);
    }

    /**
     * {@inheritDoc}
     */
    public function getSalesTaxCoaCode(): ?int
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSalesTaxCoaCode', []);

        return parent::getSalesTaxCoaCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setSalesTaxCoaCode(?int $salesTaxCoaCode): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSalesTaxCoaCode', [$salesTaxCoaCode]);

        return parent::setSalesTaxCoaCode($salesTaxCoaCode);
    }

    /**
     * {@inheritDoc}
     */
    public function getNote(): ?string
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getNote', []);

        return parent::getNote();
    }

    /**
     * {@inheritDoc}
     */
    public function setNote(?string $note): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNote', [$note]);

        return parent::setNote($note);
    }

    /**
     * {@inheritDoc}
     */
    public function getItem(): \Doctrine\Common\Collections\Collection
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getItem', []);

        return parent::getItem();
    }

    /**
     * {@inheritDoc}
     */
    public function addItem(\App\Entity\TInventoryList $item): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addItem', [$item]);

        return parent::addItem($item);
    }

    /**
     * {@inheritDoc}
     */
    public function removeItem(\App\Entity\TInventoryList $item): \App\Entity\TInventoryCategory
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeItem', [$item]);

        return parent::removeItem($item);
    }

}
