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

ConfsTechParser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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