Statement::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of DivineNii opensource projects.
7
 *
8
 * PHP version 7.4 and above required
9
 *
10
 * @author    Divine Niiquaye Ibok <[email protected]>
11
 * @copyright 2021 DivineNii (https://divinenii.com/)
12
 * @license   https://opensource.org/licenses/BSD-3-Clause License
13
 *
14
 * For the full copyright and license information, please view the LICENSE
15
 * file that was distributed with this source code.
16
 */
17
18
namespace Rade\DI\Builder;
19
20
/**
21
 * Statement represents a service assigned call.
22
 *
23
 * @author Divine Niiquaye Ibok <[email protected]>
24
 */
25
class Statement
26
{
27
    /** @var mixed */
28
    public $value;
29
30
    public array $args;
31
32
    /**
33
     * Statement constructor.
34
     *
35
     * @param mixed                   $value
36
     * @param array<int|string,mixed> $args
37
     */
38 20
    public function __construct($value, array $args = [])
39
    {
40 20
        $this->value = $value;
41 20
        $this->args = $args;
42 20
    }
43
}
44