Passed
Push — nested-sections ( 2d40b2...7dbf34 )
by Arnaud
12:03 queued 05:37
created

AbstractPostProcessor::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Cecil.
7
 *
8
 * Copyright (c) Arnaud Ligny <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Cecil\Renderer\PostProcessor;
15
16
use Cecil\Builder;
17
18
/**
19
 * Abstract class PostProcessor.
20
 */
21
abstract class AbstractPostProcessor implements PostProcessorInterface
22
{
23
    /** @var Builder */
24
    protected $builder;
25
26
    /** @var \Cecil\Config */
27
    protected $config;
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function __construct(Builder $builder)
33
    {
34
        $this->builder = $builder;
35
        $this->config = $builder->getConfig();
36
    }
37
}
38