public function matchByMapValue($mapName, $matchingValue, $fakeValue = null)
    {
        if (isset($this->rules[$mapName][$matchingValue]))
            return $this->rules[$mapName][$matchingValue]($fakeValue);

        $defaultCallback = $this->getDefault();
        return $defaultCallback($fakeValue);
    }
public function matchByMapValue($mapName, $matchingValue, $fakeValue = null)
    {
        if (isset($this->rules[$mapName][$matchingValue]))
            return $this->rules[$mapName][$matchingValue]($fakeValue);

        $defaultCallback = $this->getDefault();
        return $defaultCallback($fakeValue);
    }
public function matchByMapValue ( $ mapName , $ matchingValue , $ fakeValue = null ) { if ( isset ( $ this -> rules [ $ mapName ] [ $ matchingValue ] ) ) return $ this -> rules [ $ mapName ] [ $ matchingValue ] ( $ fakeValue ) ; $ defaultCallback = $ this -> getDefault ( ) ; return $ defaultCallback ( $ fakeValue ) ; }
Retrieve a the return value linked to a map value

@param string $mapName
@param mixed $matchingValue
@param mixed $fakeValue
@return mixed
Retrieve a the return value linked to a map value