protected function getReplacements($entry)
    {
        $link = 'https://youtu.be/' . $entry->id;
        $title = $entry->snippet->title;
        $author = $entry->snippet->channelTitle;
        $published = date($this->publishedFormat, strtotime($entry->snippet->publishedAt));
        $views = number_format($entry->statistics->viewCount, 0);
        $likes = number_format($entry->statistics->likeCount, 0);
        $dislikes = number_format($entry->statistics->dislikeCount, 0);
        $favorites = number_format($entry->statistics->favoriteCount, 0);
        $comments = number_format($entry->statistics->commentCount, 0);
        $durationInterval = new \DateInterval($entry->contentDetails->duration);
        $duration = $durationInterval->format($this->durationFormat);

        return array(
            '%link%' => $link,
            '%title%' => $title,
            '%author%' => $author,
            '%published%' => $published,
            '%views%' => $views,
            '%likes%' => $likes,
            '%dislikes%' => $dislikes,
            '%favorites%' => $favorites,
            '%comments%' => $comments,
            '%duration%' => $duration,
        );
    }
protected function getReplacements($entry)
    {
        $link = 'https://youtu.be/' . $entry->id;
        $title = $entry->snippet->title;
        $author = $entry->snippet->channelTitle;
        $published = date($this->publishedFormat, strtotime($entry->snippet->publishedAt));
        $views = number_format($entry->statistics->viewCount, 0);
        $likes = number_format($entry->statistics->likeCount, 0);
        $dislikes = number_format($entry->statistics->dislikeCount, 0);
        $favorites = number_format($entry->statistics->favoriteCount, 0);
        $comments = number_format($entry->statistics->commentCount, 0);
        $durationInterval = new \DateInterval($entry->contentDetails->duration);
        $duration = $durationInterval->format($this->durationFormat);

        return array(
            '%link%' => $link,
            '%title%' => $title,
            '%author%' => $author,
            '%published%' => $published,
            '%views%' => $views,
            '%likes%' => $likes,
            '%dislikes%' => $dislikes,
            '%favorites%' => $favorites,
            '%comments%' => $comments,
            '%duration%' => $duration,
        );
    }
Returns replacements for pattern segments based on data from a given
video data object.

@param object $entry
@return array