Lines Matching defs:object
28 * @var object[] List of objects copied.
57 * @param bool $useCloneMethod If set to true, when an object implements the __clone() function, it will be used
84 * Deep copies the given object.
86 * @param mixed $object
90 public function copy($object)
94 return $this->recursiveCopy($object);
162 * Copies an object.
164 * @param object $object
168 * @return object
170 private function copyObject($object)
172 $objectHash = spl_object_hash($object);
178 $reflectedObject = new ReflectionObject($object);
183 $this->hashMap[$objectHash] = $object;
185 return $object;
196 $newObject = clone $object;
214 private function copyObjectProperty($object, ReflectionProperty $property)
228 if ($matcher->matches($object, $property->getName())) {
230 $object,
232 function ($object) {
233 return $this->recursiveCopy($object);
245 if (method_exists($property, 'isInitialized') && !$property->isInitialized($object)) {
249 $propertyValue = $property->getValue($object);
252 $property->setValue($object, $this->recursiveCopy($propertyValue));