ConvertSchemaObject   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __invoke() 0 4 1
1
<?php namespace HSkrasek\OpenAPI\Command\Stages;
2
3
use HSkrasek\OpenAPI\Converter;
4
use League\Pipeline\StageInterface;
5
6
class ConvertSchemaObject implements StageInterface
7
{
8
    /**
9
     * @var Converter
10
     */
11
    private $converter;
12
13
    public function __construct(Converter $converter)
14
    {
15
        $this->converter = $converter;
16
    }
17
18
    /**
19
     * @inheritDoc
20
     */
21
    public function __invoke($payload)
22
    {
23
        return $this->converter->convert($payload);
24
    }
25
}
26