eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\Map::getReverseMap PHP Method

getReverseMap() private method

private getReverseMap ( $defaultSiteAccess )
    private function getReverseMap($defaultSiteAccess)
    {
        if (!empty($this->reverseMap)) {
            return $this->reverseMap;
        }
        $map = $this->map;
        foreach ($map as &$value) {
            // $value can be true in the case of the use of a Compound matcher
            if ($value === true) {
                $value = $defaultSiteAccess;
            }
        }
        return $this->reverseMap = array_flip($map);
    }