function getHighestRole() {
        return $this->roles->reduce(function ($prev, $role) {
            if($prev === null) {
                return $role;
            }
            
            return ($role->comparePositionTo($prev) > 0 ? $role : $prev);
        });
    }
function getHighestRole() {
        return $this->roles->reduce(function ($prev, $role) {
            if($prev === null) {
                return $role;
            }
            
            return ($role->comparePositionTo($prev) > 0 ? $role : $prev);
        });
    }
function getHighestRole ( ) { return $ this -> roles -> reduce ( function ( $ prev , $ role ) { if ( $ prev === null ) { return $ role ; } return ( $ role -> comparePositionTo ( $ prev ) > 0 ? $ role : $ prev ) ; } ) ; }
Gets the highest role of the member.
@return \CharlotteDunois\Yasmin\Models\Role
Gets the highest role of the member .