public function getServiceIdByName($name)
    {
        $map = array_flip($this->getServiceIdNameMap());
        if (array_key_exists($name, $map)) {
            return $map[$name];
        }

        return null;
    }
public function getServiceIdByName($name)
    {
        $map = array_flip($this->getServiceIdNameMap());
        if (array_key_exists($name, $map)) {
            return $map[$name];
        }

        return null;
    }
public function getServiceIdByName ( $ name ) { $ map = array_flip ( $ this -> getServiceIdNameMap ( ) ) ; if ( array_key_exists ( $ name , $ map ) ) { return $ map [ $ name ] ; } return null ; }
Get a service identifier by its name.

@param  string $name

@return int|null
Get a service identifier by its name .