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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
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
}