<?php

namespace App\Libraries\Parser;

interface ParserInterface
{
    public function __construct(array $request);

    public function parse();

    public function getEvent();

    public function getAttachment();

    public function getRawRequest();

    public function buildSlackAttachment();

    public function getSuscribers();
}

<?php

namespace App\Libraries\Parser;

use App\Libraries\Slack\SlackAttachment;

interface ParserInterface
{
    public function __construct(array $request);

    public function parse();

    public function getEvent(): string;

    public function getAttachment(): SlackAttachment;

    public function getRawRequest(): array;

    public function buildSlackAttachment();

    public function getSuscribers(): array;
}

Add return type to functions
Add return type to functions
