<commit_before><?php

namespace Bexio;

class Bexio
{
    private $client;

    public function __construct(Client $client)
    {
        $this->client = $client;
    }

    /**
     * Gets all the contacts
     *
     * @return array
     */
    public function getContacts(array $params = [])
    {
        return $this->client->get('contact', $params);
    }

    public function searchContacts(array $params = [])
    {
        return $this->client->get('contact/search', $params);
    }

    public function getContact($id)
    {
        return $this->client->get('contact/search/'.$id, []);
    }
}<commit_msg>Add function for fetching contacts relations<commit_after><?php

namespace Bexio;

class Bexio
{
    private $client;

    public function __construct(Client $client)
    {
        $this->client = $client;
    }

    /**
     * Gets all the contacts
     *
     * @return array
     */
    public function getContacts(array $params = [])
    {
        return $this->client->get('contact', $params);
    }

    public function searchContacts(array $params = [])
    {
        return $this->client->get('contact/search', $params);
    }

    public function getContact($id)
    {
        return $this->client->get('contact/search/'.$id, []);
    }

    public function getContactsRelations()
    {
        return $this->client->get('contact_relation', []);
    }
}
{'fraction_non_alphanumeric': 0.14731494920174165, 'fraction_numerical': 0.0, 'mean_word_length': 2.388206388206388, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5406281', 'n_tokens_mistral': 422, 'n_tokens_neox': 414, 'n_words': 86}