latest update
[namibia] / data / DoctrineORMModule2 / __CG__ValuationEntityCustomerPublicValuation.php
1 <?php
2
3 namespace DoctrineProxies\__CG__\Valuation\Entity;
4
5 /**
6  * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
7  */
8 class CustomerPublicValuation extends \Valuation\Entity\CustomerPublicValuation implements \Doctrine\ORM\Proxy\Proxy
9 {
10     /**
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.
14      *
15      * @see \Doctrine\Common\Persistence\Proxy::__setInitializer
16      */
17     public $__initializer__;
18
19     /**
20      * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
21      *
22      * @see \Doctrine\Common\Persistence\Proxy::__setCloner
23      */
24     public $__cloner__;
25
26     /**
27      * @var boolean flag indicating if this object was already initialized
28      *
29      * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
30      */
31     public $__isInitialized__ = false;
32
33     /**
34      * @var array properties to be lazy loaded, with keys being the property
35      *            names and values being their default values
36      *
37      * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
38      */
39     public static $lazyPropertiesDefaults = array();
40
41
42
43     /**
44      * @param \Closure $initializer
45      * @param \Closure $cloner
46      */
47     public function __construct($initializer = null, $cloner = null)
48     {
49
50         $this->__initializer__ = $initializer;
51         $this->__cloner__      = $cloner;
52     }
53
54     /**
55      * {@inheritDoc}
56      * @param string $name
57      */
58     public function __get($name)
59     {
60         $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', array($name));
61
62         return parent::__get($name);
63     }
64
65
66
67
68
69     /**
70      * 
71      * @return array
72      */
73     public function __sleep()
74     {
75         if ($this->__isInitialized__) {
76             return array('__isInitialized__', 'id', 'customerHash', 'stock', 'valuation', 'created', 'updated', 'archived');
77         }
78
79         return array('__isInitialized__', 'id', 'customerHash', 'stock', 'valuation', 'created', 'updated', 'archived');
80     }
81
82     /**
83      * 
84      */
85     public function __wakeup()
86     {
87         if ( ! $this->__isInitialized__) {
88             $this->__initializer__ = function (CustomerPublicValuation $proxy) {
89                 $proxy->__setInitializer(null);
90                 $proxy->__setCloner(null);
91
92                 $existingProperties = get_object_vars($proxy);
93
94                 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
95                     if ( ! array_key_exists($property, $existingProperties)) {
96                         $proxy->$property = $defaultValue;
97                     }
98                 }
99             };
100
101         }
102     }
103
104     /**
105      * 
106      */
107     public function __clone()
108     {
109         $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', array());
110     }
111
112     /**
113      * Forces initialization of the proxy
114      */
115     public function __load()
116     {
117         $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());
118     }
119
120     /**
121      * {@inheritDoc}
122      * @internal generated method: use only when explicitly handling proxy specific loading logic
123      */
124     public function __isInitialized()
125     {
126         return $this->__isInitialized__;
127     }
128
129     /**
130      * {@inheritDoc}
131      * @internal generated method: use only when explicitly handling proxy specific loading logic
132      */
133     public function __setInitialized($initialized)
134     {
135         $this->__isInitialized__ = $initialized;
136     }
137
138     /**
139      * {@inheritDoc}
140      * @internal generated method: use only when explicitly handling proxy specific loading logic
141      */
142     public function __setInitializer(\Closure $initializer = null)
143     {
144         $this->__initializer__ = $initializer;
145     }
146
147     /**
148      * {@inheritDoc}
149      * @internal generated method: use only when explicitly handling proxy specific loading logic
150      */
151     public function __getInitializer()
152     {
153         return $this->__initializer__;
154     }
155
156     /**
157      * {@inheritDoc}
158      * @internal generated method: use only when explicitly handling proxy specific loading logic
159      */
160     public function __setCloner(\Closure $cloner = null)
161     {
162         $this->__cloner__ = $cloner;
163     }
164
165     /**
166      * {@inheritDoc}
167      * @internal generated method: use only when explicitly handling proxy specific cloning logic
168      */
169     public function __getCloner()
170     {
171         return $this->__cloner__;
172     }
173
174     /**
175      * {@inheritDoc}
176      * @internal generated method: use only when explicitly handling proxy specific loading logic
177      * @static
178      */
179     public function __getLazyProperties()
180     {
181         return self::$lazyPropertiesDefaults;
182     }
183
184     
185     /**
186      * {@inheritDoc}
187      */
188     public function setCreateTime()
189     {
190
191         $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreateTime', array());
192
193         return parent::setCreateTime();
194     }
195
196     /**
197      * {@inheritDoc}
198      */
199     public function setUpdateTime()
200     {
201
202         $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdateTime', array());
203
204         return parent::setUpdateTime();
205     }
206
207     /**
208      * {@inheritDoc}
209      */
210     public function toArray(array $expand = array (
211 ), array $intersect = array (
212 ), $showIdentifiers = false, $expandAll = 0)
213     {
214
215         $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', array($expand, $intersect, $showIdentifiers, $expandAll));
216
217         return parent::toArray($expand, $intersect, $showIdentifiers, $expandAll);
218     }
219
220     /**
221      * {@inheritDoc}
222      */
223     public function fromArray($data = array (
224 ))
225     {
226
227         $this->__initializer__ && $this->__initializer__->__invoke($this, 'fromArray', array($data));
228
229         return parent::fromArray($data);
230     }
231
232 }