Test Failed
Push — master ( 1a7e08...d34d38 )
by Korotkov
08:31 queued 10s
created

AbstractComponent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 21
rs 10
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * @author  : Jagepard <[email protected]>
7
 * @license https://mit-license.org/ MIT
8
 */
9
10
namespace Structural\Decorator;
11
12
abstract class AbstractComponent
13
{
14
    protected array $data = [];
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_ARRAY, expecting T_FUNCTION or T_CONST
Loading history...
15
16
    public function __construct(string $key, string $value)
17
    {
18
        $this->data[$key] = $value;
19
    }
20
21
    abstract public function getData(): array;
22
}
23