<?php

namespace Proxies\__CG__\HVCSiteBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Fichefrais extends \HVCSiteBundle\Entity\Fichefrais 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" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'id', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'mois', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'annee', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'nbjustificatifs', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'montantvalide', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'datemotidification', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'datecreation', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'idetat', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'compte', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'lignefraisforfait', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'lignefraishorsfrais');
        }

        return array('__isInitialized__', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'id', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'mois', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'annee', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'nbjustificatifs', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'montantvalide', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'datemotidification', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'datecreation', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'idetat', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'compte', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'lignefraisforfait', '' . "\0" . 'HVCSiteBundle\\Entity\\Fichefrais' . "\0" . 'lignefraishorsfrais');
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Fichefrais $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 setMois($mois)
    {

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

        return parent::setMois($mois);
    }

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

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

        return parent::getMois();
    }

    /**
     * {@inheritDoc}
     */
    public function setAnnee($annee)
    {

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

        return parent::setAnnee($annee);
    }

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

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

        return parent::getAnnee();
    }

    /**
     * {@inheritDoc}
     */
    public function setNbjustificatifs($nbjustificatifs)
    {

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

        return parent::setNbjustificatifs($nbjustificatifs);
    }

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

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

        return parent::getNbjustificatifs();
    }

    /**
     * {@inheritDoc}
     */
    public function setMontantvalide($montantvalide)
    {

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

        return parent::setMontantvalide($montantvalide);
    }

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

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

        return parent::getMontantvalide();
    }

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

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

        return parent::setDatemotidification();
    }

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

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

        return parent::getDatemotidification();
    }

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

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

        return parent::setDatecreation();
    }

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

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

        return parent::getDatecreation();
    }

    /**
     * {@inheritDoc}
     */
    public function setIdetat(\HVCSiteBundle\Entity\Etat $idetat = NULL)
    {

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

        return parent::setIdetat($idetat);
    }

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

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

        return parent::getIdetat();
    }

    /**
     * {@inheritDoc}
     */
    public function setCompte(\HVCSiteBundle\Entity\Comptes $compte = NULL)
    {

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

        return parent::setCompte($compte);
    }

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

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

        return parent::getCompte();
    }

    /**
     * {@inheritDoc}
     */
    public function addLignefraisforfait(\HVCSiteBundle\Entity\Lignefraisforfait $lignefraisforfait)
    {

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

        return parent::addLignefraisforfait($lignefraisforfait);
    }

    /**
     * {@inheritDoc}
     */
    public function removeLignefraisforfait(\HVCSiteBundle\Entity\Lignefraisforfait $lignefraisforfait)
    {

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

        return parent::removeLignefraisforfait($lignefraisforfait);
    }

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

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

        return parent::getLignefraisforfait();
    }

    /**
     * {@inheritDoc}
     */
    public function addLignefraishorsfrais(\HVCSiteBundle\Entity\Lignefraishorsfrais $lignefraishorsfrai)
    {

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

        return parent::addLignefraishorsfrais($lignefraishorsfrai);
    }

    /**
     * {@inheritDoc}
     */
    public function removeLignefraishorsfrais(\HVCSiteBundle\Entity\Lignefraishorsfrais $lignefraishorsfrai)
    {

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

        return parent::removeLignefraishorsfrais($lignefraishorsfrai);
    }

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

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

        return parent::getLignefraishorsfrais();
    }

}
