<?php

namespace Proxies\__CG__\VGM\WOBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class LaborLoop extends \VGM\WOBundle\Entity\LaborLoop 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\\LaborLoop' . "\0" . 'id', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'date', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'started_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'finished_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'total_time', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'hour_cost', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'lunch', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'p_overtime', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'c_overtime', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'overtime_cost', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'week_closed', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'notice', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'assigned_stock_no', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'area', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'description', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'workorder', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'worker', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'department');
        }

        return array('__isInitialized__', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'id', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'date', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'started_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'finished_at', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'total_time', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'hour_cost', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'lunch', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'p_overtime', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'c_overtime', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'overtime_cost', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'week_closed', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'notice', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'assigned_stock_no', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'area', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'description', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'workorder', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'worker', '' . "\0" . 'VGM\\WOBundle\\Entity\\LaborLoop' . "\0" . 'department');
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (LaborLoop $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 setStartedAt($startedAt)
    {

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

        return parent::setStartedAt($startedAt);
    }

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

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

        return parent::getStartedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setFinishedAt($finishedAt)
    {

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

        return parent::setFinishedAt($finishedAt);
    }

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

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

        return parent::getFinishedAt();
    }

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

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

        return parent::setDate($date);
    }

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

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

        return parent::getDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setTotalTime($totalTime)
    {

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

        return parent::setTotalTime($totalTime);
    }

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

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

        return parent::getTotalTime();
    }

    /**
     * {@inheritDoc}
     */
    public function setHourCost($hourCost)
    {

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

        return parent::setHourCost($hourCost);
    }

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

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

        return parent::getHourCost();
    }

    /**
     * {@inheritDoc}
     */
    public function setLunch($lunch)
    {

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

        return parent::setLunch($lunch);
    }

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

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

        return parent::getLunch();
    }

    /**
     * {@inheritDoc}
     */
    public function setPOvertime($pOvertime)
    {

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

        return parent::setPOvertime($pOvertime);
    }

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

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

        return parent::getPOvertime();
    }

    /**
     * {@inheritDoc}
     */
    public function setCOvertime($cOvertime)
    {

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

        return parent::setCOvertime($cOvertime);
    }

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

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

        return parent::getCOvertime();
    }

    /**
     * {@inheritDoc}
     */
    public function setOvertimeCost($overtimeCost)
    {

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

        return parent::setOvertimeCost($overtimeCost);
    }

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

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

        return parent::getOvertimeCost();
    }

    /**
     * {@inheritDoc}
     */
    public function setWeekClosed($weekClosed)
    {

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

        return parent::setWeekClosed($weekClosed);
    }

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

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

        return parent::getWeekClosed();
    }

    /**
     * {@inheritDoc}
     */
    public function setNotice(\VGM\WOBundle\Entity\NoticeLoop $notice = NULL)
    {

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

        return parent::setNotice($notice);
    }

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

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

        return parent::getNotice();
    }

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

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

        return parent::setDefaultsValue();
    }

    /**
     * {@inheritDoc}
     */
    public function setAssignedStockNo($assignedStockNo)
    {

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

        return parent::setAssignedStockNo($assignedStockNo);
    }

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

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

        return parent::getAssignedStockNo();
    }

    /**
     * {@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 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 setWorkorder(\VGM\WOBundle\Entity\WorkOrder $workorder = NULL)
    {

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

        return parent::setWorkorder($workorder);
    }

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

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

        return parent::getWorkorder();
    }

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

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

        return parent::setWorker($worker);
    }

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

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

        return parent::getWorker();
    }

    /**
     * {@inheritDoc}
     */
    public function setDepartment(\VGM\WOBundle\Entity\NDepartment $department = NULL)
    {

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

        return parent::setDepartment($department);
    }

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

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

        return parent::getDepartment();
    }

}
