<?php

namespace Proxies\__CG__\OfficeBrain\Bundle\BlogBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Category extends \OfficeBrain\Bundle\BlogBundle\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\Persistence\Proxy::__setInitializer
     */
    public $__initializer__;

    /**
     * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
     *
     * @see \Doctrine\Common\Persistence\Proxy::__setCloner
     */
    public $__cloner__;

    /**
     * @var boolean flag indicating if this object was already initialized
     *
     * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
     */
    public $__isInitialized__ = false;

    /**
     * @var array properties to be lazy loaded, with keys being the property
     *            names and values being their default values
     *
     * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
     */
    public static $lazyPropertiesDefaults = [];



    /**
     * @param \Closure $initializer
     * @param \Closure $cloner
     */
    public function __construct($initializer = null, $cloner = null)
    {

        $this->__initializer__ = $initializer;
        $this->__cloner__      = $cloner;
    }







    /**
     * 
     * @return array
     */
    public function __sleep()
    {
        if ($this->__isInitialized__) {
            return ['__isInitialized__', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryName', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'slug', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryContent', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'metaCategoryTitle', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'metaCategoryDesc', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryStatus', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryCreatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'catogoryUpdatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryIsDeleted', 'postCategoryInfo'];
        }

        return ['__isInitialized__', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryName', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'slug', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryContent', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'metaCategoryTitle', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'metaCategoryDesc', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryStatus', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryCreatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'catogoryUpdatedDate', '' . "\0" . 'OfficeBrain\\Bundle\\BlogBundle\\Entity\\Category' . "\0" . 'categoryIsDeleted', 'postCategoryInfo'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Category $proxy) {
                $proxy->__setInitializer(null);
                $proxy->__setCloner(null);

                $existingProperties = get_object_vars($proxy);

                foreach ($proxy->__getLazyProperties() 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
     * @static
     */
    public function __getLazyProperties()
    {
        return self::$lazyPropertiesDefaults;
    }

    
    /**
     * {@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 setCategoryName($categoryName)
    {

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

        return parent::setCategoryName($categoryName);
    }

    /**
     * {@inheritDoc}
     */
    public function getCategoryName()
    {

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

        return parent::getCategoryName();
    }

    /**
     * {@inheritDoc}
     */
    public function setCategoryTitle($categoryTitle)
    {

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

        return parent::setCategoryTitle($categoryTitle);
    }

    /**
     * {@inheritDoc}
     */
    public function getCategoryTitle()
    {

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

        return parent::getCategoryTitle();
    }

    /**
     * {@inheritDoc}
     */
    public function setCategoryStatus($categoryStatus)
    {

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

        return parent::setCategoryStatus($categoryStatus);
    }

    /**
     * {@inheritDoc}
     */
    public function getCategoryStatus()
    {

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

        return parent::getCategoryStatus();
    }

    /**
     * {@inheritDoc}
     */
    public function setCategoryContent($categoryContent)
    {

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

        return parent::setCategoryContent($categoryContent);
    }

    /**
     * {@inheritDoc}
     */
    public function getCategoryContent()
    {

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

        return parent::getCategoryContent();
    }

    /**
     * {@inheritDoc}
     */
    public function setMetaCategoryTitle($metaCategoryTitle)
    {

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

        return parent::setMetaCategoryTitle($metaCategoryTitle);
    }

    /**
     * {@inheritDoc}
     */
    public function getMetaCategoryTitle()
    {

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

        return parent::getMetaCategoryTitle();
    }

    /**
     * {@inheritDoc}
     */
    public function setMetaCategoryDesc($metaCategoryDesc)
    {

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

        return parent::setMetaCategoryDesc($metaCategoryDesc);
    }

    /**
     * {@inheritDoc}
     */
    public function getMetaCategoryDesc()
    {

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

        return parent::getMetaCategoryDesc();
    }

    /**
     * {@inheritDoc}
     */
    public function setCategoryCreatedDate($categoryCreatedDate)
    {

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

        return parent::setCategoryCreatedDate($categoryCreatedDate);
    }

    /**
     * {@inheritDoc}
     */
    public function getCategoryCreatedDate()
    {

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

        return parent::getCategoryCreatedDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setCatogoryUpdatedDate($catogoryUpdatedDate)
    {

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

        return parent::setCatogoryUpdatedDate($catogoryUpdatedDate);
    }

    /**
     * {@inheritDoc}
     */
    public function getCatogoryUpdatedDate()
    {

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

        return parent::getCatogoryUpdatedDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setCategoryIsDeleted($categoryIsDeleted)
    {

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

        return parent::setCategoryIsDeleted($categoryIsDeleted);
    }

    /**
     * {@inheritDoc}
     */
    public function getCategoryIsDeleted()
    {

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

        return parent::getCategoryIsDeleted();
    }

    /**
     * {@inheritDoc}
     */
    public function addPostCategoryInfo(\OfficeBrain\Bundle\BlogBundle\Entity\PostCategoryInfo $postCategoryInfo)
    {

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

        return parent::addPostCategoryInfo($postCategoryInfo);
    }

    /**
     * {@inheritDoc}
     */
    public function removePostCategoryInfo(\OfficeBrain\Bundle\BlogBundle\Entity\PostCategoryInfo $postCategoryInfo)
    {

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

        return parent::removePostCategoryInfo($postCategoryInfo);
    }

    /**
     * {@inheritDoc}
     */
    public function getPostCategoryInfo()
    {

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

        return parent::getPostCategoryInfo();
    }

    /**
     * {@inheritDoc}
     */
    public function setSlug($slug)
    {

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

        return parent::setSlug($slug);
    }

    /**
     * {@inheritDoc}
     */
    public function getSlug()
    {

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

        return parent::getSlug();
    }

}
