ConsoleContext::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
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