GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( c4effd...5428db )
by Freek
03:22
created

SlashCommandResponseJob::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SlashCommand;
4
5
use Illuminate\Contracts\Queue\ShouldQueue;
6
7
abstract class SlashCommandResponseJob implements ShouldQueue, HandlesSlashCommand
8
{
9
    /** @var \Spatie\SlashCommand\SlashCommandData */
10
    public $slashCommandData;
11
12
    public function __construct(SlashCommandData $slashCommandData)
13
    {
14
        $this->slashCommandData = $slashCommandData;
15
    }
16
    
17
    public function getSlashCommandResponse(): SlashCommandResponse
18
    {
19
        return SlashCommandResponse::create($this->slashCommandData);
20
    }
21
22
    public function respondToSlack(string $text): SlashCommandResponse
23
    {
24
        return $this->getSlashCommandResponse()->setText($text);
25
    }
26
27
    abstract function handle();
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
28
29
}
30