<?php

namespace Proxies\__CG__\OfficeBrain\Bundle\CouponBundle\Entity;

/**
 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
 */
class Coupon extends \OfficeBrain\Bundle\CouponBundle\Entity\Coupon 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\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponCode', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'countryId', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponType', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isAutogenerate', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponAmount', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isFreeShipping', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isBeforeTax', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isSaleItem', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isCsv', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'usageLimit', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'usageCount', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'startDate', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'endDate', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'userEmail', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'userGroups', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'status', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponPrifix', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'instanceId', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'instanceType', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'createdAt', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'updatedAt', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'deletedAt', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'createdUid', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'deletedUid', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'updatedUid', 'languageMapping'];
        }

        return ['__isInitialized__', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'id', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponCode', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'countryId', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponType', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isAutogenerate', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponAmount', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isFreeShipping', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isBeforeTax', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isSaleItem', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'isCsv', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'usageLimit', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'usageCount', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'startDate', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'endDate', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'userEmail', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'userGroups', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'status', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'couponPrifix', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'instanceId', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'instanceType', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'createdAt', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'updatedAt', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'deletedAt', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'createdUid', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'deletedUid', '' . "\0" . 'OfficeBrain\\Bundle\\CouponBundle\\Entity\\Coupon' . "\0" . 'updatedUid', 'languageMapping'];
    }

    /**
     * 
     */
    public function __wakeup()
    {
        if ( ! $this->__isInitialized__) {
            $this->__initializer__ = function (Coupon $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 setId($Id)
    {

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

        return parent::setId($Id);
    }

    /**
     * {@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 setCouponCode($couponCode)
    {

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

        return parent::setCouponCode($couponCode);
    }

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

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

        return parent::getCouponCode();
    }

    /**
     * {@inheritDoc}
     */
    public function setCouponType($couponType)
    {

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

        return parent::setCouponType($couponType);
    }

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

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

        return parent::getCouponType();
    }

    /**
     * {@inheritDoc}
     */
    public function setIsAutogenerate($isAutogenerate)
    {

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

        return parent::setIsAutogenerate($isAutogenerate);
    }

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

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

        return parent::getIsAutogenerate();
    }

    /**
     * {@inheritDoc}
     */
    public function setCouponAmount($couponAmount)
    {

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

        return parent::setCouponAmount($couponAmount);
    }

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

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

        return parent::getCouponAmount();
    }

    /**
     * {@inheritDoc}
     */
    public function setIsFreeShipping($isFreeShipping)
    {

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

        return parent::setIsFreeShipping($isFreeShipping);
    }

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

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

        return parent::getIsFreeShipping();
    }

    /**
     * {@inheritDoc}
     */
    public function setIsBeforeTax($isBeforeTax)
    {

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

        return parent::setIsBeforeTax($isBeforeTax);
    }

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

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

        return parent::getIsBeforeTax();
    }

    /**
     * {@inheritDoc}
     */
    public function setIsSaleItem($isSaleItem)
    {

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

        return parent::setIsSaleItem($isSaleItem);
    }

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

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

        return parent::getIsSaleItem();
    }

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

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

        return parent::getIsCsv();
    }

    /**
     * {@inheritDoc}
     */
    public function setIsCsv($isCsv)
    {

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

        return parent::setIsCsv($isCsv);
    }

    /**
     * {@inheritDoc}
     */
    public function setUsageLimit($usageLimit)
    {

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

        return parent::setUsageLimit($usageLimit);
    }

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

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

        return parent::getUsageLimit();
    }

    /**
     * {@inheritDoc}
     */
    public function setUsageCount($usageCount)
    {

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

        return parent::setUsageCount($usageCount);
    }

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

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

        return parent::getUsageCount();
    }

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

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

        return parent::setStartDate($startDate);
    }

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

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

        return parent::getStartDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setEndDate($endDate)
    {

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

        return parent::setEndDate($endDate);
    }

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

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

        return parent::getEndDate();
    }

    /**
     * {@inheritDoc}
     */
    public function setUserEmail($userEmail)
    {

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

        return parent::setUserEmail($userEmail);
    }

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

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

        return parent::getUserEmail();
    }

    /**
     * {@inheritDoc}
     */
    public function setUserGroups($userGroups)
    {

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

        return parent::setUserGroups($userGroups);
    }

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

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

        return parent::getUserGroups();
    }

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

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

        return parent::setStatus($status);
    }

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

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

        return parent::getStatus();
    }

    /**
     * {@inheritDoc}
     */
    public function setCouponPrifix($couponPrifix)
    {

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

        return parent::setCouponPrifix($couponPrifix);
    }

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

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

        return parent::getCouponPrifix();
    }

    /**
     * {@inheritDoc}
     */
    public function setInstanceId($instanceId)
    {

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

        return parent::setInstanceId($instanceId);
    }

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

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

        return parent::getInstanceId();
    }

    /**
     * {@inheritDoc}
     */
    public function setInstanceType($instanceType)
    {

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

        return parent::setInstanceType($instanceType);
    }

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

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

        return parent::getInstanceType();
    }

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

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

        return parent::setCreatedAt($createdAt);
    }

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

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

        return parent::getCreatedAt();
    }

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

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

        return parent::setUpdatedAt($updatedAt);
    }

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

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

        return parent::getUpdatedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setDeletedAt($deletedAt)
    {

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

        return parent::setDeletedAt($deletedAt);
    }

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

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

        return parent::getDeletedAt();
    }

    /**
     * {@inheritDoc}
     */
    public function setCreatedUid($createdUid)
    {

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

        return parent::setCreatedUid($createdUid);
    }

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

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

        return parent::getCreatedUid();
    }

    /**
     * {@inheritDoc}
     */
    public function setDeletedUid($deletedUid)
    {

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

        return parent::setDeletedUid($deletedUid);
    }

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

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

        return parent::getDeletedUid();
    }

    /**
     * {@inheritDoc}
     */
    public function setUpdatedUid($updatedUid)
    {

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

        return parent::setUpdatedUid($updatedUid);
    }

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

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

        return parent::getUpdatedUid();
    }

    /**
     * {@inheritDoc}
     */
    public function addLanguageMapping(\OfficeBrain\Bundle\CouponBundle\Entity\CouponLanguage $languageMapping)
    {

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

        return parent::addLanguageMapping($languageMapping);
    }

    /**
     * {@inheritDoc}
     */
    public function removeLanguageMapping(\OfficeBrain\Bundle\CouponBundle\Entity\CouponLanguage $languageMapping)
    {

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

        return parent::removeLanguageMapping($languageMapping);
    }

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

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

        return parent::getLanguageMapping();
    }

}
