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.

CountCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Psonic\Commands\Ingest;
4
5
use Psonic\Commands\Command;
6
7
final class CountCommand extends Command
8
{
9
    private $command    = 'COUNT';
10
    private $parameters = [];
11
12
    /**
13
     * Counts the number of objects
14
     * CountCommand constructor.
15
     * @param string $collection
16
     * @param string|null $bucket
17
     * @param string|null $object
18
     */
19
    public function __construct(string $collection, string $bucket = null, string $object = null)
20
    {
21
        $this->parameters = [
22
            'collection' => $collection,
23
            'bucket'     => $bucket,
24
            'object'     => $object,
25
        ];
26
27
        parent::__construct($this->command, $this->parameters);
28
    }
29
}