find property in flatten properties.

@param string $name

@return null|PropertyInterface
432900
private function findProperty($name)
    {
        foreach ($this->getProperties(true) as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }

        return;
    }
1215351
public function getProperty($name)
    {
        if ($this->hasProperty($name)) {
            return $this->properties[$name];
        }
        throw new ModelException(
            'Property ' . $name . ' does not exist.'
        );
    }
1367957
public function getProperty($name)
    {
        if ($this->reflected->hasProperty($name))
            return $this->annotations['properties'][$name];

        return null;
    }
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;
	}
940041
public function findFacetByName($name)
    {
        // No personality defined yet.
        if (is_null($this->personality)) {
            return null;
        }

        // Traverse and Return.
        return $this->traverseNodesAndFindBy('name', $name, $this->personality);
    }
292263
public function getProperty($name)
    {
        if (isset($this->$name)) {
            return $this->$name;
        }
        if (isset(static::$name)) {
            return static::$name;
        }
        return null;
    }
1090921
private static function getModelProperty($name)
    {
        self::initModelProperties();

        return isset(self::$modelProperties[static::class][$name]) ?
            self::$modelProperties[static::class][$name] : null;
    }
1374534
public function getProperty($name)
    {
        $propertiesNames = [
            "divisibility"  => 0,
            "initialSupply" => 1,
            "supplyMutable" => 2,
            "transferable"  => 3,
        ];

        if (! array_key_exists($name, $propertiesNames)) {
            throw new InvalidArgumentException("Mosaic property name '" . $name ."' is invalid. Must be one of 'divisibility', "
                                             . "'initialSupply', 'supplyMutable' or 'transferable'.");
        }

        // sort properties lexicographically (see toDTO() overload)
        $sorted = $this->sortBy("name");
        $index = $propertiesNames[$name];
        $prop  = $sorted->get($index);

        if ($prop instanceof MosaicProperty) {
            return $prop->value;
        }

        return $prop["value"];
    }
1203564
protected function findOption($name)
    {
        foreach ($this->options as $option) {
            if ($option->hasAlias($name)) {
                return $option;
            }
        }

        return null;
    }
617255
public function find($name)
    {
        try {
            return parent::find($name);
        } catch (\InvalidArgumentException $e) {
            $this->shortcut = true;

            return parent::find('run');
        }
    }
717699
private function getProperty($name)
    {
        if (!Property::exists($this->properties, $name)) {
            throw new \Exception();
        }

        return Property::get($this->properties, $name);
    }
493621
public function get($name)
    {
        if (strpos($name, '.')) {
            $names = explode('.', $name);
            $node = $this;

            foreach ($names as $n) {
                if ($node instanceof self && property_exists($node, $n)) {
                    $node = $node->$n;
                } else {
                    if ($this->isStrict()) {
                        exit("Stored data don't exists node '$n'\n");
                    }

                    $node = null;
                    break;
                }
            }

            return $node;
        }

        return property_exists($this, $name) ? $this->$name : null;
    }
1102592
public function getPropertyByName($name)
    {
        foreach ($this->properties as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }
    }
1152729
public function get($name)
	{
		list($class, $name) = explode('::$', $name, 2);

		$class = new \ReflectionClass($class);
		$property = $class->getProperty($name);
		$property->setAccessible(TRUE);

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

        $prop->setAccessible(true);

        return $prop;
    }
1055242
public function findPropertyRequired(
        string $name
    ) {
        $class = get_class($this);

        return Property::getRequired(
            $this->getProperties(),
            $name,
            "Required property ({$name}) is missing in: {$class}"
        );
    }
5886
protected function findTableFromName($name)
    {
        foreach ($this->tables as $table) {
            if ($table->getName() === $name) {
                return $table;
            }
        }

        return null;
    }