public function getIdPrivilegeByName(string $name): string
    {
        if (isset($this->privilege[$name])) {
            return (string) $this->privilege[$name]['id'];
        }
        return '';
    }
public function getIdPrivilegeByName(string $name): string
    {
        if (isset($this->privilege[$name])) {
            return (string) $this->privilege[$name]['id'];
        }
        return '';
    }
public function getIdPrivilegeByName ( string $ name ) : string { if ( isset ( $ this -> privilege [ $ name ] ) ) { return ( string ) $ this -> privilege [ $ name ] [ 'id' ] ; } return '' ; }
Get id privilege by name.

@param string $name
@return string
Get id privilege by name .