Completed
Push — master ( 677e94...463d73 )
by Gerrit
02:18
created

AdditionalDataArgument   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 20
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 5 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\ArgumentInterface;
16
17
final class AdditionalDataArgument implements ArgumentInterface
18
{
19
20
    /**
21
     * @var string
22
     */
23
    private $key;
24
25
    public function __construct(string $key)
26
    {
27
        $this->key = $key;
28
    }
29
30
    public function getValue()
31
    {
32
        # TODO: additional-arguments per context-object? or per call-arguments? or what?
33
        return null;
34
    }
35
36
}
37