protected function set_roleids_for(string $field, array $roleids) : expired_context {
        $roledata = json_encode($roleids);

        $this->raw_set($field, $roledata);

        return $this;
    }
protected function set_roleids_for(string $field, array $roleids) : expired_context {
        $roledata = json_encode($roleids);

        $this->raw_set($field, $roledata);

        return $this;
    }
protected function set_roleids_for ( string $ field , array $ roleids ) : expired_context { $ roledata = json_encode ( $ roleids ) ; $ this -> raw_set ( $ field , $ roledata ) ; return $ this ; }
Set the list of role IDs for either expiredroles, or unexpiredroles.

@param   string  $field
@param   int[]   $roleids
@return  expired_context
Set the list of role IDs for either expiredroles or unexpiredroles .