public function canById(int $permissionId): bool
    {
        if (isset($this->permission[$permissionId])) {
            return true;
        }

        return false;
    }
public function canById(int $permissionId): bool
    {
        if (isset($this->permission[$permissionId])) {
            return true;
        }

        return false;
    }
public function canById ( int $ permissionId ) : bool { if ( isset ( $ this -> permission [ $ permissionId ] ) ) { return true ; } return false ; }
Check if a Permission is owned, use permission Id.

@param int $permissionId

@return bool
Check if a Permission is owned use permission Id .