Completed
Push — master ( 463d73...47ba96 )
by Gerrit
02:04
created

LiteralArgument::resolve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Copyright (C) 2018 Gerrit Addiks.
4
 * This package (including this file) was released under the terms of the GPL-3.0.
5
 * You should have received a copy of the GNU General Public License along with this program.
6
 * If not, see <http://www.gnu.org/licenses/> or send me a mail so i can send you a copy.
7
 *
8
 * @license GPL-3.0
9
 *
10
 * @author Gerrit Addiks <[email protected]>
11
 */
12
13
namespace Addiks\SymfonyGenerics\Arguments;
14
15
use Addiks\SymfonyGenerics\Arguments\Argument;
16
17
final class LiteralArgument implements Argument
18
{
19
20
    /**
21
     * @var mixed
22
     */
23
    private $literal;
24
25
    /**
26
     * @param mixed $literal
27
     */
28 1
    public function __construct($literal)
29
    {
30 1
        $this->literal = $literal;
31 1
    }
32
33 1
    public function resolve()
34
    {
35 1
        return $this->literal;
36
    }
37
38
}
39