src/Searsaw/Drawbridge/models/BridgeUser.php
public function getPermissionId($permission)
    {
        if (is_numeric($permission))
            return $permission;
        elseif (is_string($permission))
            return $this->getPermissionIdFromName($permission);
        elseif ($permission instanceof BridgePermission)
            return $permission->id;
        else
            throw new \InvalidArgumentException('Permission to check must be a name, ID, or Permission object.');
    }
public function getPermissionId($permission)
    {
        if (is_numeric($permission))
            return $permission;
        elseif (is_string($permission))
            return $this->getPermissionIdFromName($permission);
        elseif ($permission instanceof BridgePermission)
            return $permission->id;
        else
            throw new \InvalidArgumentException('Permission to check must be a name, ID, or Permission object.');
    }
public function getPermissionId ( $ permission ) { if ( is_numeric ( $ permission ) ) return $ permission ; elseif ( is_string ( $ permission ) ) return $ this -> getPermissionIdFromName ( $ permission ) ; elseif ( $ permission instanceof BridgePermission ) return $ permission -> id ; else throw new \ InvalidArgumentException ( 'Permission to check must be a name, ID, or Permission object.' ) ; }
Get the ID of the passed in permission.  Permission
can be an ID, name, or Permission object

@param $permission integer|string|\Searsaw\Drawbridge\Models\BridgePermission The permission whose ID to get

@return integer
@throws \InvalidArgumentException
Get the ID of the passed in permission . Permission can be an ID name or Permission object