Neos\Flow\Mvc\RequestMatcher::matchRequestProperty PHP Метод

matchRequestProperty() защищенный Метод

Compare a request propertyValue against an expected value and add the weight if it's TRUE
protected matchRequestProperty ( string $propertyName, string $expectedValue, integer $weight ) : boolean
$propertyName string
$expectedValue string
$weight integer
Результат boolean
    protected function matchRequestProperty($propertyName, $expectedValue, $weight)
    {
        if ($this->request === null) {
            return false;
        }
        $value = ObjectAccess::getProperty($this->request, $propertyName);
        if ($value === $expectedValue) {
            $this->addWeight($weight);
            return true;
        }
        return false;
    }