Gush\ThirdParty\Gitlab\Adapter\GitLabRepoAdapter::getComments PHP Метод

getComments() публичный Метод

public getComments ( $id )
    public function getComments($id)
    {
        $comments = $this->client->api('merge_requests')->showNotes($this->getCurrentProject()->id, $id);
        return array_filter(array_map(function ($note) {
            return ['id' => $note['id'], 'user' => $note['author']['username'], 'body' => $note['body'], 'created_at' => !empty($note['created_at']) ? new \DateTime($note['created_at']) : null, 'updated_at' => !empty($note['updated_at']) ? new \DateTime($note['updated_at']) : null];
        }, $comments));
    }