@param $name

@return Property
@throws Exception
438640
public function getItem($name)
    {
        $items = $this->getItems();
        if ( ! $this->hasItem($name)) {
            throw new Exception(
                'Bad Item [' . $name . '] for smart property 
                [' . $this->getManager()->getController() . '][' . $this->getName() . ']');
        }

        return $items[$name];
    }
992535
public function getProperty($name)
    {
        if (property_exists($this, $name)) {
            return $this->$name;
        }

        return $this->properties[$name];
    }
361506
public function getProperty($name)
    {
        if (!$this->hasProperty($name)) {
            return;
        }

        if (strstr($name, '.')) {
            $value = false;
            @eval('$value = '.$this->resolveArrayPath($name).';');

            return $value;
        }

        if ($this->isArray()) {
            return $this->object[$name];
        } else {
            return $this->object->$name;
        }
    }
887466
public function getPath($name)
    {
        if (!isset($this->config[$name]['prototype_path'])) {
            throw new \Exception(sprintf('Path for "%s" not found', $name));
        }

        return $this->config[$name]['prototype_path'];
    }
1127706
private function convertProperty($name)
    {
        if (isset($this->_schema[$name]['null']) && $this->_schema[$name]['null'] && $this->$name === null) {
            return;
        }

        switch ($this->_schema[$name]['type']) {
        case Object::TYPE_ID:
            if (!($this->$name instanceof MongoId) && $this->$name !== null) {
                $this->$name = new MongoId($this->$name);
            }
            break;
        case Object::TYPE_BOOL:
            if (!is_bool($this->$name)) {
                $this->$name = (bool) $this->$name;
            }
            break;
        case Object::TYPE_INT:
            if (!is_int($this->$name)) {
                $this->$name = (int) $this->$name;
            }
            break;
        case Object::TYPE_DOUBLE:
            if (!is_double($this->$name)) {
                $this->$name = (double) $this->$name;
            }
            break;
        case Object::TYPE_STRING:
            if (!is_string($this->$name)) {
                $this->$name = (string) $this->$name;
            }
            break;
        case Object::TYPE_ARRAY:
            if (!is_array($this->$name)) {
                $this->$name = [];
            }
            break;
        case Object::TYPE_DATE:
            if (!($this->$name instanceof MongoDate)) {
                $this->$name = new MongoDate($this->$name);
            }
            break;
        case Object::TYPE_REFERENCE:
            if (!MongoDBRef::isRef($this->$name)) {
                $this->$name = null;
            }
            break;
        default:
            throw new Exception("Property '{$name}' type is unknown ({$this->_schema[$name]['type']})");
        }
        return null;
    }
706952
public function getProperty($name)
    {
        foreach ($this->getChildProperties() as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }

        return;
    }
854362
protected static function getProperty(string $name)
    {
        $prop = (new ReflectionClass(Builder::class))->getProperty($name);

        $prop->setAccessible(true);

        return $prop;
    }
484633
public function getProperty($name)
	{
		$method = 'get' . ucfirst($name);

		if (! method_exists($this, $method)) {
			$this->unlockAll();
			$class = get_class($this);
			throw new \RuntimeException("Could not found getter function for object	$class property $name");
		}

		$value = $this->$method();

		return $value;
	}
148917
public function get($name)
    {
        if (!$this->exists($name)) {
            throw new PropertyNotExistsException($name);
        }

        return $this->data[$name];
    }
910157
protected function getFilter($name)
    {
        // filters must exists in configured filters
        if (!array_key_exists($name, $this->filters)) {
            throw new Exception('Invalid filter '.$name.'. Check your mapping configuration');
        }

        return $this->filters[$name];
    }
826635
public function getProperty($name)
    {
        if (!isset($this->properties[$name])) {
            throw new \InvalidArgumentException(
                sprintf(
                    'Unknown model property "%s", in structure "%s". Known model properties: "%s". Loaded from "%s"',
                    $name,
                    $this->getName(),
                    implode('", "', array_keys($this->properties)),
                    $this->resource
                )
            );
        }

        return $this->properties[$name];
    }
432900
private function findProperty($name)
    {
        foreach ($this->getProperties(true) as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }

        return;
    }
1329679
public function useName($name)
    {
        if (empty($name)) {
            throw new \Exception('Given name is empty!');
        }

        if (!isset($_FILES[$name])) {
            throw new \Exception('Given name not exists in $_FILES var!');
        }

        $this->data = $_FILES[$name];

        return $this;
    }
246395
public function getProperty(string $name)
    {
        if (strpos($name, '_')) { // camelize
            $name = preg_replace_callback('~_([a-z])~', function($match) {
                return ucfirst($match[1]);
            }, strtolower($name));
        }

        // aliases
        if (in_array($name, ['limit', 'offset'])) {
            $name = ($name == 'limit') ? 'stop' : 'start';
        }

        if (!property_exists($this, $name)) {
            throw new PagerException("No property found such '{$name}'");
        }

        return $this->{$name};
    }
382624
public function get($name = null, $default = null)
    {
        $value = null;

        if (null === $name) {
            $value = $this->data;
        } elseif (isset($this->data[$name])) {
            $value = $this->data[$name];
        } elseif (null !== $default) {
            $value = $default;
        } else {
            throw new \Exception('Key not found in data ! (key: ' . $name . ')');
        }

        return $value;
    }
230889
public function getComponentDataValue($name) {
    if (!isset($this->component_data[$name])) {
      throw new \Exception(strtr("Property @name not found in data for @type.", [
        '@name' => $name,
        '@type' => get_class($this),
      ]));
    }

    return $this->component_data[$name];
  }
375544
public function getRoute($name)
    {
        if (! $this->hasRoute($name)) {
            throw new \Exception($name);
        }
        return $this->routes[$name];
    }