ConsoleContext   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A toArray() 0 6 1
1
<?php
2
3
namespace Facade\FlareClient\Context;
4
5
class ConsoleContext implements ContextInterface
6
{
7
    /** @var array */
8
    private $arguments = [];
9
10
    public function __construct(array $arguments = [])
11
    {
12
        $this->arguments = $arguments;
13
    }
14
15
    public function toArray(): array
16
    {
17
        return [
18
            'arguments' => $this->arguments,
19
        ];
20
    }
21
}
22