public function has(string ...$oids): bool
    {
        foreach ($oids as $oid) {
            if (!in_array($oid, $this->_purposes)) {
                return false;
            }
        }
        return true;
    }
public function has(string ...$oids): bool
    {
        foreach ($oids as $oid) {
            if (!in_array($oid, $this->_purposes)) {
                return false;
            }
        }
        return true;
    }
public function has ( string ... $ oids ) : bool { foreach ( $ oids as $ oid ) { if ( ! in_array ( $ oid , $ this -> _purposes ) ) { return false ; } } return true ; }
Whether purposes are present.

If multiple purposes are checked, all must be present.

@param string ...$oids
@return bool
Whether purposes are present .