public function getRules(): RuleSet
    {
        $rules = $this->client->get($this->uri->withPath('.settings/rules'));

        return RuleSet::fromArray($rules);
    }
public function getRules(): RuleSet
    {
        $rules = $this->client->get($this->uri->withPath('.settings/rules'));

        return RuleSet::fromArray($rules);
    }
public function getRules ( ) : RuleSet { $ rules = $ this -> client -> get ( $ this -> uri -> withPath ( '.settings/rules' ) ) ; return RuleSet :: fromArray ( $ rules ) ; }
Retrieve Firebase Database Rules.

@see https://firebase.google.com/docs/database/rest/app-management#retrieving-firebase-realtime-database-rules

@return RuleSet
Retrieve Firebase Database Rules .