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.

AbstractCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getArgs() 0 3 1
A setArgs() 0 3 1
1
<?php
2
3
/**
4
 * Abstract command event class is base class for creating the command for received in response messages.
5
 * Most methods are inherited from AbstractEntityEvent since command is actually and AbstractEntityEvent
6
 * itself.
7
 *
8
 * @package Teebot (Telegram bot framework)
9
 *
10
 * @author  Stanislav Drozdov <[email protected]>
11
 */
12
13
declare(strict_types=1);
14
15
namespace Teebot\Api\Command;
16
17
abstract class AbstractCommand extends AbstractEntityEvent implements CommandInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $args = '';
23
24
    /**
25
     * Sets argument string for the command
26
     *
27
     * @param string $args Arguments string
28
     */
29
    public function setArgs(string $args)
30
    {
31
        $this->args = $args;
32
    }
33
34
    /**
35
     * Returns arguments string for the command
36
     *
37
     * @return string
38
     */
39
    public function getArgs(): string
40
    {
41
        return $this->args;
42
    }
43
}
44