3 namespace DoctrineProxies\__CG__\Stock\Entity;
6 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
8 class Tuhpi extends \Stock\Entity\Tuhpi implements \Doctrine\ORM\Proxy\Proxy
11 * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
12 * three parameters, being respectively the proxy object to be initialized, the method that triggered the
13 * initialization process and an array of ordered parameters that were passed to that method.
15 * @see \Doctrine\Common\Persistence\Proxy::__setInitializer
17 public $__initializer__;
20 * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
22 * @see \Doctrine\Common\Persistence\Proxy::__setCloner
27 * @var boolean flag indicating if this object was already initialized
29 * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
31 public $__isInitialized__ = false;
34 * @var array properties to be lazy loaded, with keys being the property
35 * names and values being their default values
37 * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
39 public static $lazyPropertiesDefaults = array();
44 * @param \Closure $initializer
45 * @param \Closure $cloner
47 public function __construct($initializer = null, $cloner = null)
50 $this->__initializer__ = $initializer;
51 $this->__cloner__ = $cloner;
58 public function __get($name)
60 $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', array($name));
62 return parent::__get($name);
70 public function __set($name, $value)
72 $this->__initializer__ && $this->__initializer__->__invoke($this, '__set', array($name, $value));
74 return parent::__set($name, $value);
83 public function __sleep()
85 if ($this->__isInitialized__) {
86 return array('__isInitialized__', 'id', 'company', 'createdBy', 'valuation', 'priceGuide', 'auction', 'stock', 'transactionNumber', 'f_financeProvider', 'f_financeBranch', 'f_agreementOrAccountNumber', 'f_agreementType', 'f_telephoneNumber', 'f_resultCode', 'fh_data', 'ah_data', 'ah_assessmentDate', 'ah_vehicleDescription', 'ah_vinMatch', 'ah_regMatch', 'ah_estimatedRepairCost', 'ah_assessmentNumber', 'ah_engineMatch', 'ah_estimatePercentageOfRetailValue', 'ah_resultCode', 'si_policeStation', 'si_caseNumber', 'si_dateStolen', 'si_vinMatch', 'si_engineMatch', 'si_registrationMatch', 'si_resultCode', 'ai_company', 'ai_referenceNumber', 'ai_alertReason', 'ai_telephoneNumber', 'ai_resultCode', 'ivid_responseCode', 'ivid_responseDescription', 'ivid_referenceNumber', 'ivid_contactNumber', 'ivid_resultCode', 'mi_company', 'mi_referenceNumber', 'mi_contactNumber', 'mi_dateApplied', 'mi_resultCode', 'vesa_CertificateNumber', 'vesa_dateFitted', 'vesa_brandName', 'vesa_brandModel', 'vesa_deviceDescriptionType', 'vesa_resultCode', 'rh_data', 'eh_data', 'mh_data', 'vc_month', 'vc_year', 'vc_newOptionCode', 'vc_usedOptionCode', 'vc_maximumRange', 'vc_minimunRange', 'vc_newPrice', 'vc_retailPrice', 'vc_tradePrice', 'vc_resultCode', 'vci_HPINumber', 'vci_matchColour', 'vci_matchEngineNumber', 'vci_matchManufacturer', 'vci_matchModel', 'vci_matchString', 'vci_matchVehicleRegistration', 'vci_matchVinorChassis', 'vci_matchYear', 'vvi_guideMonth', 'vvi_guideYear', 'vvi_newListPrice', 'vvi_retailPrice', 'vvi_tradePrice', 'vvi_costPrice', 'vvi_adjustedRetailPrice_mileageAndCondition', 'vvi_AdjustedTradePrice_MileageAndCondition', 'vvi_adjustedRetailPrice', 'vvi_adjustedTradePrice', 'vvi_estimatedRetailPrice', 'vvi_estimatedTradePrice', 'vvi_estimatedCostPrice', 'vvi_adjustedEstimatedRetailPrice_mileageAndCondition', 'vvi_adjustedEstimatedTradePrice_mileageAndCondition', 'vvi_adjustedEstimatedcostprice_mileageandcondition', 'vvi_adjustedEstimatedRetailPrice', 'vvi_adjustedEstimatedTradePrice', 'vvi_adjustedEstimatedCostPrice', 'vvi_resultCode', 'error_code', 'reset', 'previousState', 'jobState', 'created', 'updated', 'archived');
89 return array('__isInitialized__', 'id', 'company', 'createdBy', 'valuation', 'priceGuide', 'auction', 'stock', 'transactionNumber', 'f_financeProvider', 'f_financeBranch', 'f_agreementOrAccountNumber', 'f_agreementType', 'f_telephoneNumber', 'f_resultCode', 'fh_data', 'ah_data', 'ah_assessmentDate', 'ah_vehicleDescription', 'ah_vinMatch', 'ah_regMatch', 'ah_estimatedRepairCost', 'ah_assessmentNumber', 'ah_engineMatch', 'ah_estimatePercentageOfRetailValue', 'ah_resultCode', 'si_policeStation', 'si_caseNumber', 'si_dateStolen', 'si_vinMatch', 'si_engineMatch', 'si_registrationMatch', 'si_resultCode', 'ai_company', 'ai_referenceNumber', 'ai_alertReason', 'ai_telephoneNumber', 'ai_resultCode', 'ivid_responseCode', 'ivid_responseDescription', 'ivid_referenceNumber', 'ivid_contactNumber', 'ivid_resultCode', 'mi_company', 'mi_referenceNumber', 'mi_contactNumber', 'mi_dateApplied', 'mi_resultCode', 'vesa_CertificateNumber', 'vesa_dateFitted', 'vesa_brandName', 'vesa_brandModel', 'vesa_deviceDescriptionType', 'vesa_resultCode', 'rh_data', 'eh_data', 'mh_data', 'vc_month', 'vc_year', 'vc_newOptionCode', 'vc_usedOptionCode', 'vc_maximumRange', 'vc_minimunRange', 'vc_newPrice', 'vc_retailPrice', 'vc_tradePrice', 'vc_resultCode', 'vci_HPINumber', 'vci_matchColour', 'vci_matchEngineNumber', 'vci_matchManufacturer', 'vci_matchModel', 'vci_matchString', 'vci_matchVehicleRegistration', 'vci_matchVinorChassis', 'vci_matchYear', 'vvi_guideMonth', 'vvi_guideYear', 'vvi_newListPrice', 'vvi_retailPrice', 'vvi_tradePrice', 'vvi_costPrice', 'vvi_adjustedRetailPrice_mileageAndCondition', 'vvi_AdjustedTradePrice_MileageAndCondition', 'vvi_adjustedRetailPrice', 'vvi_adjustedTradePrice', 'vvi_estimatedRetailPrice', 'vvi_estimatedTradePrice', 'vvi_estimatedCostPrice', 'vvi_adjustedEstimatedRetailPrice_mileageAndCondition', 'vvi_adjustedEstimatedTradePrice_mileageAndCondition', 'vvi_adjustedEstimatedcostprice_mileageandcondition', 'vvi_adjustedEstimatedRetailPrice', 'vvi_adjustedEstimatedTradePrice', 'vvi_adjustedEstimatedCostPrice', 'vvi_resultCode', 'error_code', 'reset', 'previousState', 'jobState', 'created', 'updated', 'archived');
95 public function __wakeup()
97 if ( ! $this->__isInitialized__) {
98 $this->__initializer__ = function (Tuhpi $proxy) {
99 $proxy->__setInitializer(null);
100 $proxy->__setCloner(null);
102 $existingProperties = get_object_vars($proxy);
104 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
105 if ( ! array_key_exists($property, $existingProperties)) {
106 $proxy->$property = $defaultValue;
117 public function __clone()
119 $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', array());
123 * Forces initialization of the proxy
125 public function __load()
127 $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());
132 * @internal generated method: use only when explicitly handling proxy specific loading logic
134 public function __isInitialized()
136 return $this->__isInitialized__;
141 * @internal generated method: use only when explicitly handling proxy specific loading logic
143 public function __setInitialized($initialized)
145 $this->__isInitialized__ = $initialized;
150 * @internal generated method: use only when explicitly handling proxy specific loading logic
152 public function __setInitializer(\Closure $initializer = null)
154 $this->__initializer__ = $initializer;
159 * @internal generated method: use only when explicitly handling proxy specific loading logic
161 public function __getInitializer()
163 return $this->__initializer__;
168 * @internal generated method: use only when explicitly handling proxy specific loading logic
170 public function __setCloner(\Closure $cloner = null)
172 $this->__cloner__ = $cloner;
177 * @internal generated method: use only when explicitly handling proxy specific cloning logic
179 public function __getCloner()
181 return $this->__cloner__;
186 * @internal generated method: use only when explicitly handling proxy specific loading logic
189 public function __getLazyProperties()
191 return self::$lazyPropertiesDefaults;
198 public function setCreateTime()
201 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreateTime', array());
203 return parent::setCreateTime();
209 public function setUpdateTime()
212 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdateTime', array());
214 return parent::setUpdateTime();
220 public function toArray(array $expand = array (
221 ), array $intersect = array (
222 ), $showIdentifiers = false, $expandAll = 0)
225 $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', array($expand, $intersect, $showIdentifiers, $expandAll));
227 return parent::toArray($expand, $intersect, $showIdentifiers, $expandAll);
233 public function accessoriesToArray($showIdentifiers = false)
236 $this->__initializer__ && $this->__initializer__->__invoke($this, 'accessoriesToArray', array($showIdentifiers));
238 return parent::accessoriesToArray($showIdentifiers);
244 public function damagesToArray($showIdentifiers = false)
247 $this->__initializer__ && $this->__initializer__->__invoke($this, 'damagesToArray', array($showIdentifiers));
249 return parent::damagesToArray($showIdentifiers);
255 public function fromArray($data = array (
259 $this->__initializer__ && $this->__initializer__->__invoke($this, 'fromArray', array($data));
261 return parent::fromArray($data);