Custom Relationship field won't compile

I've followed the guide below to try and create a new relationship field in the control panel

https://statamic.dev/extending/relationship-fieldtypes

but when saved I get the following error

Class Tweets contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Statamic\Fieldtypes\Relationship::toItemArray)

The guide does mention possibly overriding that method but doesn't suggest what you might do to it, instead overriding the getItemData method instead

The code is below. I feel like I'm either doing something dumb or the guide is no longer accurate?

<?php

use Statamic\Fieldtypes\Relationship;
use Carbon\Carbon;
use Statamic\CP\Column;

class Tweets extends Relationship
{
    protected $canCreate = false;
    protected $canSearch = false;

    public function getIndexItems($request)
    {
        $tweets = Twitter::getUserTimeline([
            'screen_name' => $this->config('screen_name')
        ]);

        return $this->formatTweets($tweets);
    }

    protected function formatTweets($tweets)
    {
        return collect($tweets)->map(function ($tweet) {
            $date = Carbon::parse($tweet->created_at);

            return [
                'id'            => $tweet->id_str,
                'text'          => $tweet->text,
                'date'          => $date->timestamp,
                'date_relative' => $date->diffForHumans(),
                'user'          => $tweet->user->screen_name,
            ];
        });
    }

    protected function getColumns()
    {
        return [
            Column::make('text'),
            Column::make('user'),
            Column::make('date')->value('date_relative'),
        ];
    }

    public function getItemData($values, $site = null)
    {
        $tweets = Twitter::getStatusesLookup(['id' => implode(',', $values)]);

        return $this->formatTweets($tweets);
    }

}
>>>>>>> Unanswered <<<<<<<
1 Reply
1 Follower