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;
    }
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;
    }
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 ; }
Compare a request propertyValue against an expected
value and add the weight if it's true

@param string $propertyName
@param string $expectedValue
@param integer $weight
@return boolean
Compare a request propertyValue against an expected value and add the weight if it s true