<?php

namespace DoctrineORMModule\Proxy\__CG__\Admin\Entity\Page;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Page extends \Admin\Entity\Page\Page 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" . 'Admin\\Entity\\Page\\Page' . "\0" . 'serviceManager', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'id', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'title', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'subtitle', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'slug', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'image', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'status', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'author', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'pageType', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'tags', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'parent', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'children', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'mapWidgets', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'createdAt', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'updatedAt', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'postDate', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'widgets', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'page_url', 'breadcrumbs', 'relativeUrl', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'content', 'postType'];
        }

        return ['__isInitialized__', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'serviceManager', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'id', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'title', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'subtitle', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'slug', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'image', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'status', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'author', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'pageType', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'tags', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'parent', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'children', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'mapWidgets', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'createdAt', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'updatedAt', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'postDate', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'widgets', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'page_url', 'breadcrumbs', 'relativeUrl', '' . "\0" . 'Admin\\Entity\\Page\\Page' . "\0" . 'content', 'postType'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Page $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 setId($id)
    {

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

        return parent::setId($id);
    }

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

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

        return parent::getTitle();
    }

    /**
     * {@inheritDoc}
     */
    public function setTitle($title)
    {

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

        return parent::setTitle($title);
    }

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

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

        return parent::getSubtitle();
    }

    /**
     * {@inheritDoc}
     */
    public function setSubtitle($subtitle)
    {

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

        return parent::setSubtitle($subtitle);
    }

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

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

        return parent::getSlug();
    }

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

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

        return parent::setSlug($slug);
    }

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

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

        return parent::getImage();
    }

    /**
     * {@inheritDoc}
     */
    public function setImage($image)
    {

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

        return parent::setImage($image);
    }

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

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

        return parent::getStatus();
    }

    /**
     * {@inheritDoc}
     */
    public function setStatus($status)
    {

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

        return parent::setStatus($status);
    }

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

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

        return parent::getStatusName();
    }

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

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

        return parent::getAuthor();
    }

    /**
     * {@inheritDoc}
     */
    public function setAuthor($author)
    {

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

        return parent::setAuthor($author);
    }

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

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

        return parent::getCreatedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setCreatedAt($createdAt)
    {

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

        return parent::setCreatedAt($createdAt);
    }

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

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

        return parent::getUpdatedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setUpdatedAt($updatedAt)
    {

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

        return parent::setUpdatedAt($updatedAt);
    }

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

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

        return parent::getPostDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostDate($postDate)
    {

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

        return parent::setPostDate($postDate);
    }

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

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

        return parent::getTags();
    }

    /**
     * {@inheritDoc}
     */
    public function setTags($tags)
    {

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

        return parent::setTags($tags);
    }

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

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

        return parent::getParent();
    }

    /**
     * {@inheritDoc}
     */
    public function setParent($parent)
    {

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

        return parent::setParent($parent);
    }

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

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

        return parent::hasImage();
    }

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

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

        return parent::getTagsAsString();
    }

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

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

        return parent::isPublish();
    }

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

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

        return parent::getMapWidgets();
    }

    /**
     * {@inheritDoc}
     */
    public function setMapWidgets($mapWidgets)
    {

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

        return parent::setMapWidgets($mapWidgets);
    }

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

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

        return parent::getWidgets();
    }

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

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

        return parent::setWidgets();
    }

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

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

        return parent::getPage_url();
    }

    /**
     * {@inheritDoc}
     */
    public function setPage_url($url)
    {

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

        return parent::setPage_url($url);
    }

    /**
     * {@inheritDoc}
     */
    public function setServiceManager(\Zend\ServiceManager\ServiceManager $serviceManager)
    {

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

        return parent::setServiceManager($serviceManager);
    }

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

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

        return parent::getServiceManager();
    }

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

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

        return parent::getBreadcrumbs();
    }

    /**
     * {@inheritDoc}
     */
    public function setBreadcrumbs($breadcrumbs)
    {

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

        return parent::setBreadcrumbs($breadcrumbs);
    }

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

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

        return parent::getPageType();
    }

    /**
     * {@inheritDoc}
     */
    public function setPageType($pageType)
    {

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

        return parent::setPageType($pageType);
    }

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

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

        return parent::getChildren();
    }

    /**
     * {@inheritDoc}
     */
    public function setChildren($children)
    {

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

        return parent::setChildren($children);
    }

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

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

        return parent::getRelativeUrl();
    }

    /**
     * {@inheritDoc}
     */
    public function setRelativeUrl($relativeUrl)
    {

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

        return parent::setRelativeUrl($relativeUrl);
    }

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

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

        return parent::getContent();
    }

    /**
     * {@inheritDoc}
     */
    public function setContent($content)
    {

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

        return parent::setContent($content);
    }

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

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

        return parent::preSerialize();
    }

    /**
     * {@inheritDoc}
     */
    public function setData(array $data)
    {

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

        return parent::setData($data);
    }

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

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

        return parent::toArray();
    }

    /**
     * {@inheritDoc}
     */
    public function parseDate($date = NULL, $defaultDateNow = true)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'parseDate', [$date, $defaultDateNow]);

        return parent::parseDate($date, $defaultDateNow);
    }

    /**
     * {@inheritDoc}
     */
    public function determinePostStatus($status, \DateTime $postDate = NULL)
    {

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

        return parent::determinePostStatus($status, $postDate);
    }

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

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

        return parent::getPostType();
    }

    /**
     * {@inheritDoc}
     */
    public function setPostType($postType)
    {

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

        return parent::setPostType($postType);
    }

}
