protected function addItemToTheEndOfPageArray($pageArray, $page, $type)
    {
        $pageArray[] = [
            'page' => $page,
            'label' => $this->paginationConfig['labels'][$type],
            'type' => $type
        ];

        return $pageArray;
    }