Completed
Push — develop ( fbdd82...317691 )
by Mike
09:29
created

Render   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 47
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getDocumentation() 0 4 1
A getTarget() 0 4 1
A getTemplates() 0 4 1
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2015 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\Application;
14
15
use League\Flysystem\Filesystem;
16
use phpDocumentor\DomainModel\Parser\Documentation;
17
18
final class Render
19
{
20
    /** @var Documentation */
21
    private $documentation;
22
23
    /** @var string */
24
    private $target;
25
26
    /** @var string[] */
27
    private $templates;
28
29
    /**
30
     * @param Documentation $documentation
31
     * @param Filesystem $target
32
     * @param string[] $templates array of templates to render.
33
     */
34
    public function __construct(Documentation $documentation, Filesystem $target, array $templates)
35
    {
36
        $this->documentation = $documentation;
37
        $this->target    = $target;
0 ignored issues
show
Documentation Bug introduced by
It seems like $target of type object<League\Flysystem\Filesystem> is incompatible with the declared type string of property $target.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
38
        $this->templates = $templates;
39
    }
40
41
    /**
42
     * @return Documentation
43
     */
44
    public function getDocumentation()
45
    {
46
        return $this->documentation;
47
    }
48
49
    /**
50
     * @return Filesystem
51
     */
52
    public function getTarget()
53
    {
54
        return $this->target;
55
    }
56
57
    /**
58
     * @return string[]
59
     */
60
    public function getTemplates()
61
    {
62
        return $this->templates;
63
    }
64
}
65