<?php

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

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class File extends \Admin\Entity\File\File 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\\File\\File' . "\0" . 'id', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'author', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'authorName', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'type', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'filename', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'url', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'urlWithoutThumbor', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'title', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'description', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'altText', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'legend', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'width', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'height', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'crop', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'parent', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'thumb', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'createdAt', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'updatedAt', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'postDate', 'serviceFileManipulation', 'postType'];
        }

        return ['__isInitialized__', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'id', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'author', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'authorName', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'type', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'filename', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'url', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'urlWithoutThumbor', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'title', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'description', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'altText', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'legend', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'width', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'height', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'crop', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'parent', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'thumb', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'createdAt', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'updatedAt', '' . "\0" . 'Admin\\Entity\\File\\File' . "\0" . 'postDate', 'serviceFileManipulation', 'postType'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (File $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 setServiceFileManipulation($service)
    {

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

        return parent::setServiceFileManipulation($service);
    }

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

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

        return parent::getServiceFileManipulation();
    }

    /**
     * {@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 getType()
    {

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

        return parent::getType();
    }

    /**
     * {@inheritDoc}
     */
    public function setType($type)
    {

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

        return parent::setType($type);
    }

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

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

        return parent::getFilename();
    }

    /**
     * {@inheritDoc}
     */
    public function setFilename($filename)
    {

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

        return parent::setFilename($filename);
    }

    /**
     * {@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 getDescription()
    {

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

        return parent::getDescription();
    }

    /**
     * {@inheritDoc}
     */
    public function setDescription($description)
    {

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

        return parent::setDescription($description);
    }

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

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

        return parent::getAltText();
    }

    /**
     * {@inheritDoc}
     */
    public function setAltText($altText)
    {

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

        return parent::setAltText($altText);
    }

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

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

        return parent::getLegend();
    }

    /**
     * {@inheritDoc}
     */
    public function setLegend($legend)
    {

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

        return parent::setLegend($legend);
    }

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

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

        return parent::getWidth();
    }

    /**
     * {@inheritDoc}
     */
    public function setWidth($width)
    {

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

        return parent::setWidth($width);
    }

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

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

        return parent::getHeight();
    }

    /**
     * {@inheritDoc}
     */
    public function setHeight($height)
    {

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

        return parent::setHeight($height);
    }

    /**
     * {@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 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 setUrl()
    {

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

        return parent::setUrl();
    }

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

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

        return parent::getUrl();
    }

    /**
     * {@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 getCrop()
    {

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

        return parent::getCrop();
    }

    /**
     * {@inheritDoc}
     */
    public function setCrop($crop)
    {

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

        return parent::setCrop($crop);
    }

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

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

        return parent::getPostDate();
    }

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

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

        return parent::setPostDate($date);
    }

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

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

        return parent::getAuthorName();
    }

    /**
     * {@inheritDoc}
     */
    public function setAuthorName($authorName)
    {

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

        return parent::setAuthorName($authorName);
    }

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

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

        return parent::getUrlWithoutThumbor();
    }

    /**
     * {@inheritDoc}
     */
    public function setUrlWithoutThumbor($urlWithoutThumbor)
    {

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

        return parent::setUrlWithoutThumbor($urlWithoutThumbor);
    }

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

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

        return parent::getThumb();
    }

    /**
     * {@inheritDoc}
     */
    public function setThumb($thumb)
    {

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

        return parent::setThumb($thumb);
    }

    /**
     * {@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);
    }

}
