CIBootstrap::setAent()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace TheAentMachine\Aent\Event\Bootstrap\Model;
4
5
use TheAentMachine\Aent\Registry\AentItemRegistry;
6
7
final class CIBootstrap
8
{
9
    /** @var AentItemRegistry */
10
    private $aent;
11
12
    /** @var array<string,string> */
13
    private $metadata;
14
15
    /**
16
     * @return AentItemRegistry
17
     */
18
    public function getAent(): AentItemRegistry
19
    {
20
        return $this->aent;
21
    }
22
23
    /**
24
     * @param AentItemRegistry $aent
25
     * @return self
26
     */
27
    public function setAent(AentItemRegistry $aent): self
28
    {
29
        $this->aent = $aent;
30
        return $this;
31
    }
32
33
    /**
34
     * @return array<string,string>
35
     */
36
    public function getMetadata(): array
37
    {
38
        return $this->metadata;
39
    }
40
41
    /**
42
     * @param array<string,string> $metadata
43
     * @return self
44
     */
45
    public function setMetadata(array $metadata): self
46
    {
47
        $this->metadata = $metadata;
48
        return $this;
49
    }
50
}
51