/
home
/
obinna
/
html
/
restaurants
/
var
/
cache
/
dev
/
doctrine
/
odm
/
mongodb
/
Proxies
/
Upload File
HOME
<?php namespace MongoDBODMProxies\__PM__\App\Document\Place; class Generated2dabdaf92ffa39b0a2c76c0790ea4b52 extends \App\Document\Place implements \ProxyManager\Proxy\GhostObjectInterface { /** * @var \Closure|null initializer responsible for generating the wrapped object */ private $initializerbab93 = null; /** * @var bool tracks initialization status - true while the object is initializing */ private $initializationTracker53327 = false; /** * @var bool[] map of public properties of the parent class */ private static $publicPropertiesdadd6 = [ ]; /** * @var array[][] visibility and default value of defined properties, indexed by * property name and class name */ private static $privateProperties12226 = [ 'name' => [ 'App\\Document\\Place' => true, ], 'nickname' => [ 'App\\Document\\Place' => true, ], 'slug' => [ 'App\\Document\\Place' => true, ], 'address' => [ 'App\\Document\\Place' => true, ], 'location' => [ 'App\\Document\\Place' => true, ], 'area' => [ 'App\\Document\\Place' => true, ], 'times' => [ 'App\\Document\\Place' => true, ], 'daily' => [ 'App\\Document\\Place' => true, ], 'opening' => [ 'App\\Document\\Place' => true, ], 'closing' => [ 'App\\Document\\Place' => true, ], 'daysopen' => [ 'App\\Document\\Place' => true, ], 'tags' => [ 'App\\Document\\Place' => true, ], 'type' => [ 'App\\Document\\Place' => true, ], 'phones' => [ 'App\\Document\\Place' => true, ], 'image' => [ 'App\\Document\\Place' => true, ], 'category' => [ 'App\\Document\\Place' => true, ], 'owner' => [ 'App\\Document\\Place' => true, ], ]; /** * @var string[][] declaring class name of defined protected properties, indexed by * property name */ private static $protectedProperties04616 = [ ]; private static $signature2dabdaf92ffa39b0a2c76c0790ea4b52 = 'YTo0OntzOjk6ImNsYXNzTmFtZSI7czoxODoiQXBwXERvY3VtZW50XFBsYWNlIjtzOjc6ImZhY3RvcnkiO3M6NDQ6IlByb3h5TWFuYWdlclxGYWN0b3J5XExhenlMb2FkaW5nR2hvc3RGYWN0b3J5IjtzOjE5OiJwcm94eU1hbmFnZXJWZXJzaW9uIjtzOjQ3OiJ2MS4wLjVAMDA2YWE1ZDMyZjg4N2E0ZGI0MzUzYjEzYjViNTA5NTYxM2UwNjExZiI7czoxMjoicHJveHlPcHRpb25zIjthOjE6e3M6MTc6InNraXBwZWRQcm9wZXJ0aWVzIjthOjE6e2k6MDtzOjIyOiIAQXBwXERvY3VtZW50XFBsYWNlAGlkIjt9fX0='; /** * Triggers initialization logic for this ghost object * * @param string $methodName * @param mixed[] $parameters * * @return mixed */ private function callInitializera326d($methodName, array $parameters) { if ($this->initializationTracker53327 || ! $this->initializerbab93) { return; } $this->initializationTracker53327 = true; static $cacheApp_Document_Place; $cacheApp_Document_Place ?? $cacheApp_Document_Place = \Closure::bind(static function ($instance) { $instance->name = NULL; $instance->nickname = NULL; $instance->slug = NULL; $instance->address = NULL; $instance->location = NULL; $instance->area = NULL; $instance->times = NULL; $instance->daily = NULL; $instance->opening = NULL; $instance->closing = NULL; $instance->daysopen = NULL; $instance->tags = NULL; $instance->type = NULL; $instance->phones = NULL; $instance->image = NULL; $instance->category = NULL; $instance->owner = NULL; }, null, 'App\\Document\\Place'); $cacheApp_Document_Place($this); $properties = [ ]; static $cacheFetchApp_Document_Place; $cacheFetchApp_Document_Place ?? $cacheFetchApp_Document_Place = \Closure::bind(function ($instance, array & $properties) { $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'name'] = & $instance->name; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'nickname'] = & $instance->nickname; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'slug'] = & $instance->slug; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'address'] = & $instance->address; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'location'] = & $instance->location; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'area'] = & $instance->area; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'times'] = & $instance->times; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'daily'] = & $instance->daily; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'opening'] = & $instance->opening; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'closing'] = & $instance->closing; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'daysopen'] = & $instance->daysopen; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'tags'] = & $instance->tags; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'type'] = & $instance->type; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'phones'] = & $instance->phones; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'image'] = & $instance->image; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'category'] = & $instance->category; $properties['' . "\0" . 'App\\Document\\Place' . "\0" . 'owner'] = & $instance->owner; }, $this, 'App\\Document\\Place'); $cacheFetchApp_Document_Place($this, $properties); $result = $this->initializerbab93->__invoke($this, $methodName, $parameters, $this->initializerbab93, $properties); $this->initializationTracker53327 = false; return $result; } /** * Constructor for lazy initialization * * @param \Closure|null $initializer */ public static function staticProxyConstructor($initializer) { static $reflection; $reflection = $reflection ?? new \ReflectionClass(__CLASS__); $instance = $reflection->newInstanceWithoutConstructor(); \Closure::bind(function (\App\Document\Place $instance) { unset($instance->name, $instance->nickname, $instance->slug, $instance->address, $instance->location, $instance->area, $instance->times, $instance->daily, $instance->opening, $instance->closing, $instance->daysopen, $instance->tags, $instance->type, $instance->phones, $instance->image, $instance->category, $instance->owner); }, $instance, 'App\\Document\\Place')->__invoke($instance); $instance->initializerbab93 = $initializer; return $instance; } public function & __get($name) { $this->initializerbab93 && ! $this->initializationTracker53327 && $this->callInitializera326d('__get', array('name' => $name)); if (isset(self::$publicPropertiesdadd6[$name])) { return $this->$name; } if (isset(self::$protectedProperties04616[$name])) { if ($this->initializationTracker53327) { return $this->$name; } // check protected property access via compatible class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $object = isset($caller['object']) ? $caller['object'] : ''; $expectedType = self::$protectedProperties04616[$name]; if ($object instanceof $expectedType) { return $this->$name; } $class = isset($caller['class']) ? $caller['class'] : ''; if ($class === $expectedType || is_subclass_of($class, $expectedType) || $class === 'ReflectionProperty') { return $this->$name; } } elseif (isset(self::$privateProperties12226[$name])) { // check private property access via same class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $class = isset($caller['class']) ? $caller['class'] : ''; static $accessorCache = []; if (isset(self::$privateProperties12226[$name][$class])) { $cacheKey = $class . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function & ($instance) use ($name) { return $instance->$name; }, null, $class); return $accessor($this); } if ($this->initializationTracker53327 || 'ReflectionProperty' === $class) { $tmpClass = key(self::$privateProperties12226[$name]); $cacheKey = $tmpClass . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function & ($instance) use ($name) { return $instance->$name; }, null, $tmpClass); return $accessor($this); } } $realInstanceReflection = new \ReflectionClass(get_parent_class($this)); if (! $realInstanceReflection->hasProperty($name)) { $targetObject = $this; $backtrace = debug_backtrace(false, 1); trigger_error( sprintf( 'Undefined property: %s::$%s in %s on line %s', $realInstanceReflection->getName(), $name, $backtrace[0]['file'], $backtrace[0]['line'] ), \E_USER_NOTICE ); return $targetObject->$name; } $targetObject = $realInstanceReflection->newInstanceWithoutConstructor(); $accessor = function & () use ($targetObject, $name) { return $targetObject->$name; }; $backtrace = debug_backtrace(true, 2); $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub(); $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject)); $returnValue = & $accessor(); return $returnValue; } public function __set($name, $value) { $this->initializerbab93 && $this->callInitializera326d('__set', array('name' => $name, 'value' => $value)); if (isset(self::$publicPropertiesdadd6[$name])) { return ($this->$name = $value); } if (isset(self::$protectedProperties04616[$name])) { // check protected property access via compatible class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $object = isset($caller['object']) ? $caller['object'] : ''; $expectedType = self::$protectedProperties04616[$name]; if ($object instanceof $expectedType) { return ($this->$name = $value); } $class = isset($caller['class']) ? $caller['class'] : ''; if ($class === $expectedType || is_subclass_of($class, $expectedType) || $class === 'ReflectionProperty') { return ($this->$name = $value); } } elseif (isset(self::$privateProperties12226[$name])) { // check private property access via same class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $class = isset($caller['class']) ? $caller['class'] : ''; static $accessorCache = []; if (isset(self::$privateProperties12226[$name][$class])) { $cacheKey = $class . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function ($instance, $value) use ($name) { return ($instance->$name = $value); }, null, $class); return $accessor($this, $value); } if ('ReflectionProperty' === $class) { $tmpClass = key(self::$privateProperties12226[$name]); $cacheKey = $tmpClass . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function ($instance, $value) use ($name) { return ($instance->$name = $value); }, null, $tmpClass); return $accessor($this, $value); } } $realInstanceReflection = new \ReflectionClass(get_parent_class($this)); if (! $realInstanceReflection->hasProperty($name)) { $targetObject = $this; $targetObject->$name = $value; return $targetObject->$name; } $targetObject = $realInstanceReflection->newInstanceWithoutConstructor(); $accessor = function & () use ($targetObject, $name, $value) { $targetObject->$name = $value; return $targetObject->$name; }; $backtrace = debug_backtrace(true, 2); $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub(); $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject)); $returnValue = & $accessor(); return $returnValue; } public function __isset($name) { $this->initializerbab93 && $this->callInitializera326d('__isset', array('name' => $name)); if (isset(self::$publicPropertiesdadd6[$name])) { return isset($this->$name); } if (isset(self::$protectedProperties04616[$name])) { // check protected property access via compatible class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $object = isset($caller['object']) ? $caller['object'] : ''; $expectedType = self::$protectedProperties04616[$name]; if ($object instanceof $expectedType) { return isset($this->$name); } $class = isset($caller['class']) ? $caller['class'] : ''; if ($class === $expectedType || is_subclass_of($class, $expectedType)) { return isset($this->$name); } } else { // check private property access via same class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $class = isset($caller['class']) ? $caller['class'] : ''; static $accessorCache = []; if (isset(self::$privateProperties12226[$name][$class])) { $cacheKey = $class . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function ($instance) use ($name) { return isset($instance->$name); }, null, $class); return $accessor($this); } if ('ReflectionProperty' === $class) { $tmpClass = key(self::$privateProperties12226[$name]); $cacheKey = $tmpClass . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function ($instance) use ($name) { return isset($instance->$name); }, null, $tmpClass); return $accessor($this); } } $realInstanceReflection = new \ReflectionClass(get_parent_class($this)); if (! $realInstanceReflection->hasProperty($name)) { $targetObject = $this; return isset($targetObject->$name); } $targetObject = $realInstanceReflection->newInstanceWithoutConstructor(); $accessor = function () use ($targetObject, $name) { return isset($targetObject->$name); }; $backtrace = debug_backtrace(true, 2); $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub(); $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject)); $returnValue = $accessor(); return $returnValue; } public function __unset($name) { $this->initializerbab93 && $this->callInitializera326d('__unset', array('name' => $name)); if (isset(self::$publicPropertiesdadd6[$name])) { unset($this->$name); return; } if (isset(self::$protectedProperties04616[$name])) { // check protected property access via compatible class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $object = isset($caller['object']) ? $caller['object'] : ''; $expectedType = self::$protectedProperties04616[$name]; if ($object instanceof $expectedType) { unset($this->$name); return; } $class = isset($caller['class']) ? $caller['class'] : ''; if ($class === $expectedType || is_subclass_of($class, $expectedType) || $class === 'ReflectionProperty') { unset($this->$name); return; } } elseif (isset(self::$privateProperties12226[$name])) { // check private property access via same class $callers = debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT, 2); $caller = isset($callers[1]) ? $callers[1] : []; $class = isset($caller['class']) ? $caller['class'] : ''; static $accessorCache = []; if (isset(self::$privateProperties12226[$name][$class])) { $cacheKey = $class . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function ($instance) use ($name) { unset($instance->$name); }, null, $class); return $accessor($this); } if ('ReflectionProperty' === $class) { $tmpClass = key(self::$privateProperties12226[$name]); $cacheKey = $tmpClass . '#' . $name; $accessor = isset($accessorCache[$cacheKey]) ? $accessorCache[$cacheKey] : $accessorCache[$cacheKey] = \Closure::bind(static function ($instance) use ($name) { unset($instance->$name); }, null, $tmpClass); return $accessor($this); } } $realInstanceReflection = new \ReflectionClass(get_parent_class($this)); if (! $realInstanceReflection->hasProperty($name)) { $targetObject = $this; unset($targetObject->$name); return; } $targetObject = $realInstanceReflection->newInstanceWithoutConstructor(); $accessor = function () use ($targetObject, $name) { unset($targetObject->$name); return; }; $backtrace = debug_backtrace(true, 2); $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub(); $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject)); $accessor(); } public function __clone() { $this->initializerbab93 && $this->callInitializera326d('__clone', []); } public function __sleep() { $this->initializerbab93 && $this->callInitializera326d('__sleep', []); return array_keys((array) $this); } public function setProxyInitializer(\Closure $initializer = null) : void { $this->initializerbab93 = $initializer; } public function getProxyInitializer() : ?\Closure { return $this->initializerbab93; } public function initializeProxy() : bool { return $this->initializerbab93 && $this->callInitializera326d('initializeProxy', []); } public function isProxyInitialized() : bool { return ! $this->initializerbab93; } }