Completed
Push — master ( d89681...8e123d )
by Andreas
20s
created

ConfsTechParser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A parse() 0 6 1
1
<?php
2
3
/*
4
 * Copyright (c) Andreas Heigl<[email protected]
5
 *
6
 * Licensed under the MIT License. See LICENSE.md file in the project root
7
 * for full license information.
8
 */
9
10
namespace Callingallpapers\Parser;
11
12
use Callingallpapers\Entity\CfpList;
13
use Callingallpapers\Service\ConfsTechParserFactory;
14
use Callingallpapers\Writer\WriterInterface;
15
16
class ConfsTechParser implements ParserInterface
17
{
18
    private $factory;
19
20
    public function __construct(
21
        ConfsTechParserFactory $factory
22
    ) {
23
        $this->factory = $factory;
24
    }
25
26
    /**
27
     * @param WriterInterface $output
28
     *
29
     * @return CfpList
30
     */
31
    public function parse(WriterInterface $output)
32
    {
33
        $parser = $this->factory->createParser($output);
34
35
        $parser();
36
    }
37
}
38