public function toArray()
    {
        $results = [];
        foreach ($this->claims as $claim) {
            $results[$claim->getName()] = $claim->getValue();
        }

        return $results;
    }
public function toArray()
    {
        $results = [];
        foreach ($this->claims as $claim) {
            $results[$claim->getName()] = $claim->getValue();
        }

        return $results;
    }
public function toArray ( ) { $ results = [ ] ; foreach ( $ this -> claims as $ claim ) { $ results [ $ claim -> getName ( ) ] = $ claim -> getValue ( ) ; } return $ results ; }
Get the array of claims.

@return array
Get the array of claims .