<?php

namespace Proxies\__CG__\OfficeBrain\CustomBundle\OrderBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class OrderBillingDetail extends \OfficeBrain\CustomBundle\OrderBundle\Entity\OrderBillingDetail 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" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'orderMasterId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'contactbookId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'name', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'email', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'street1', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'street2', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'countryId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'countryName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'stateId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'stateName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'cityId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'cityName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'zipCode', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'extension', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'phone', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'mobile', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'fax', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'website', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'companyName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'companyNumber'];
        }

        return ['__isInitialized__', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'orderMasterId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'contactbookId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'name', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'email', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'street1', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'street2', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'countryId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'countryName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'stateId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'stateName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'cityId', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'cityName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'zipCode', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'extension', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'phone', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'mobile', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'fax', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'website', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'companyName', '' . "\0" . 'OfficeBrain\\CustomBundle\\OrderBundle\\Entity\\OrderBillingDetail' . "\0" . 'companyNumber'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (OrderBillingDetail $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  parent::getId();
        }


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

        return parent::getId();
    }

    /**
     * {@inheritDoc}
     */
    public function setName($name)
    {

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

        return parent::setName($name);
    }

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

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

        return parent::getName();
    }

    /**
     * {@inheritDoc}
     */
    public function setEmail($email)
    {

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

        return parent::setEmail($email);
    }

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

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

        return parent::getEmail();
    }

    /**
     * {@inheritDoc}
     */
    public function setStreet1($street1)
    {

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

        return parent::setStreet1($street1);
    }

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

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

        return parent::getStreet1();
    }

    /**
     * {@inheritDoc}
     */
    public function setStreet2($street2)
    {

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

        return parent::setStreet2($street2);
    }

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

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

        return parent::getStreet2();
    }

    /**
     * {@inheritDoc}
     */
    public function setCountryId($countryId)
    {

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

        return parent::setCountryId($countryId);
    }

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

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

        return parent::getCountryId();
    }

    /**
     * {@inheritDoc}
     */
    public function setCountryName($countryName)
    {

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

        return parent::setCountryName($countryName);
    }

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

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

        return parent::getCountryName();
    }

    /**
     * {@inheritDoc}
     */
    public function setStateId($stateId)
    {

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

        return parent::setStateId($stateId);
    }

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

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

        return parent::getStateId();
    }

    /**
     * {@inheritDoc}
     */
    public function setStateName($stateName)
    {

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

        return parent::setStateName($stateName);
    }

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

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

        return parent::getStateName();
    }

    /**
     * {@inheritDoc}
     */
    public function setCityId($cityId)
    {

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

        return parent::setCityId($cityId);
    }

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

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

        return parent::getCityId();
    }

    /**
     * {@inheritDoc}
     */
    public function setCityName($cityName)
    {

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

        return parent::setCityName($cityName);
    }

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

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

        return parent::getCityName();
    }

    /**
     * {@inheritDoc}
     */
    public function setZipCode($zipCode)
    {

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

        return parent::setZipCode($zipCode);
    }

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

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

        return parent::getZipCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setExtension($extension)
    {

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

        return parent::setExtension($extension);
    }

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

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

        return parent::getExtension();
    }

    /**
     * {@inheritDoc}
     */
    public function setPhone($phone)
    {

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

        return parent::setPhone($phone);
    }

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

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

        return parent::getPhone();
    }

    /**
     * {@inheritDoc}
     */
    public function setMobile($mobile)
    {

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

        return parent::setMobile($mobile);
    }

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

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

        return parent::getMobile();
    }

    /**
     * {@inheritDoc}
     */
    public function setFax($fax)
    {

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

        return parent::setFax($fax);
    }

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

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

        return parent::getFax();
    }

    /**
     * {@inheritDoc}
     */
    public function setWebsite($website)
    {

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

        return parent::setWebsite($website);
    }

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

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

        return parent::getWebsite();
    }

    /**
     * {@inheritDoc}
     */
    public function setCompanyName($companyName)
    {

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

        return parent::setCompanyName($companyName);
    }

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

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

        return parent::getCompanyName();
    }

    /**
     * {@inheritDoc}
     */
    public function setCompanyNumber($companyNumber)
    {

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

        return parent::setCompanyNumber($companyNumber);
    }

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

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

        return parent::getCompanyNumber();
    }

    /**
     * {@inheritDoc}
     */
    public function setOrderMasterId(\OfficeBrain\CustomBundle\OrderBundle\Entity\OrderMaster $orderMasterId = NULL)
    {

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

        return parent::setOrderMasterId($orderMasterId);
    }

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

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

        return parent::getOrderMasterId();
    }

    /**
     * {@inheritDoc}
     */
    public function setContactbookId($contactbookId)
    {

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

        return parent::setContactbookId($contactbookId);
    }

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

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

        return parent::getContactbookId();
    }

}
