public function getConnectionsAttribute()
    {
        $response = $this->discord->request(
            'GET',
            $this->discord->getConnectionsEndpoint(),
            $this->token
        );

        $collection = new Collection();

        foreach ($response as $raw) {
            $collection->push(
                $this->discord->buildPart(Connection::class, $this->token, $raw)
            );
        }

        return $collection;
    }
public function getConnectionsAttribute()
    {
        $response = $this->discord->request(
            'GET',
            $this->discord->getConnectionsEndpoint(),
            $this->token
        );

        $collection = new Collection();

        foreach ($response as $raw) {
            $collection->push(
                $this->discord->buildPart(Connection::class, $this->token, $raw)
            );
        }

        return $collection;
    }
public function getConnectionsAttribute ( ) { $ response = $ this -> discord -> request ( 'GET' , $ this -> discord -> getConnectionsEndpoint ( ) , $ this -> token ) ; $ collection = new Collection ( ) ; foreach ( $ response as $ raw ) { $ collection -> push ( $ this -> discord -> buildPart ( Connection :: class , $ this -> token , $ raw ) ) ; } return $ collection ; }
Gets the connections attribute.

@return Collection Connections.
Gets the connections attribute .