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

Render::getTarget()   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
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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