<?php

namespace Proxies\__CG__\VGM\WOBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class PlanningTask extends \VGM\WOBundle\Entity\PlanningTask 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 = array();



    /**
     * @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 array('__isInitialized__', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'id', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'area', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'obs', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'supervisor', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'description', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'status', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'start_date', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'death_line', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'created_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'updated_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'created_by', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'unit', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'updated_by', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'etime', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'rtime', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'completed_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'workorders', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'order_number');
        }

        return array('__isInitialized__', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'id', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'area', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'obs', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'supervisor', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'description', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'status', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'start_date', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'death_line', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'created_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'updated_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'created_by', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'unit', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'updated_by', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'etime', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'rtime', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'completed_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'workorders', '' . "\0" . 'VGM\\WOBundle\\Entity\\PlanningTask' . "\0" . 'order_number');
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (PlanningTask $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', array());
    }

    /**
     * Forces initialization of the proxy
     */
    public function __load()
    {
        $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());
    }

    /**
     * {@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', array());

        return parent::getId();
    }

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

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

        return parent::setDescription($description);
    }

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

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

        return parent::getDescription();
    }

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

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

        return parent::setStatus($status);
    }

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

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

        return parent::getStatus();
    }

    /**
     * {@inheritDoc}
     */
    public function setStartDate($startDate)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStartDate', array($startDate));

        return parent::setStartDate($startDate);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStartDate', array());

        return parent::getStartDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setDeathLine($deathLine)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeathLine', array($deathLine));

        return parent::setDeathLine($deathLine);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeathLine', array());

        return parent::getDeathLine();
    }

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

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

        return parent::setCreatedAt($createdAt);
    }

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

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

        return parent::getCreatedAt();
    }

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

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

        return parent::setUpdatedAt($updatedAt);
    }

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

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

        return parent::getUpdatedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function addWorkorder(\VGM\WOBundle\Entity\WorkOrder $workorder)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'addWorkorder', array($workorder));

        return parent::addWorkorder($workorder);
    }

    /**
     * {@inheritDoc}
     */
    public function removeWorkorder(\VGM\WOBundle\Entity\WorkOrder $workorder)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeWorkorder', array($workorder));

        return parent::removeWorkorder($workorder);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getWorkorders', array());

        return parent::getWorkorders();
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAtValue', array());

        return parent::setCreatedAtValue();
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAtValue', array());

        return parent::setUpdatedAtValue();
    }

    /**
     * {@inheritDoc}
     */
    public function setCreatedBy(\VGM\WOBundle\Entity\Worker $createdBy = NULL)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedBy', array($createdBy));

        return parent::setCreatedBy($createdBy);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedBy', array());

        return parent::getCreatedBy();
    }

    /**
     * {@inheritDoc}
     */
    public function setUnit(\VGM\WOBundle\Entity\CUnit $unit = NULL)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUnit', array($unit));

        return parent::setUnit($unit);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUnit', array());

        return parent::getUnit();
    }

    /**
     * {@inheritDoc}
     */
    public function setUpdatedBy($updatedBy)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedBy', array($updatedBy));

        return parent::setUpdatedBy($updatedBy);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedBy', array());

        return parent::getUpdatedBy();
    }

    /**
     * {@inheritDoc}
     */
    public function setArea($area)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setArea', array($area));

        return parent::setArea($area);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getArea', array());

        return parent::getArea();
    }

    /**
     * {@inheritDoc}
     */
    public function setObs($obs)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setObs', array($obs));

        return parent::setObs($obs);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getObs', array());

        return parent::getObs();
    }

    /**
     * {@inheritDoc}
     */
    public function setSupervisor(\VGM\WOBundle\Entity\Worker $supervisor = NULL)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setSupervisor', array($supervisor));

        return parent::setSupervisor($supervisor);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getSupervisor', array());

        return parent::getSupervisor();
    }

    /**
     * {@inheritDoc}
     */
    public function setEtime($etime)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setEtime', array($etime));

        return parent::setEtime($etime);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getEtime', array());

        return parent::getEtime();
    }

    /**
     * {@inheritDoc}
     */
    public function setRtime($rtime)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setRtime', array($rtime));

        return parent::setRtime($rtime);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRtime', array());

        return parent::getRtime();
    }

    /**
     * {@inheritDoc}
     */
    public function setCompletedAt($completedAt)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCompletedAt', array($completedAt));

        return parent::setCompletedAt($completedAt);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCompletedAt', array());

        return parent::getCompletedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setOrderNumber($orderNumber)
    {

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrderNumber', array($orderNumber));

        return parent::setOrderNumber($orderNumber);
    }

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

        $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrderNumber', array());

        return parent::getOrderNumber();
    }

}
