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

Query::expression()   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-2016 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\DomainModel\Renderer;
14
15
/**
16
 * Value object representing a Query that can be done on a ReadModel to limit the available input for a
17
 * template action handler.
18
 */
19
final class Query
20
{
21
    private $expression = '';
22
23
    /**
24
     * Query constructor.
25
     *
26
     * @param string $expression
27
     */
28
    public function __construct($expression)
29
    {
30
        $this->expression = $expression;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function expression()
37
    {
38
        return $this->expression;
39
    }
40
}
41