Metadata   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 4
dl 0
loc 33
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A isExcluded() 0 3 1
A __construct() 0 3 1
A getProtectedMethods() 0 3 1
A getProperties() 0 3 1
1
<?php
2
3
/**
4
 * Metadata.php
5
 *
6
 * Callable class metadata.
7
 *
8
 * @package jaxon-core
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2024 Thierry Feuzeu <[email protected]>
11
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
12
 * @link https://github.com/jaxon-php/jaxon-core
13
 */
14
15
namespace Jaxon\App\Metadata;
16
17
class Metadata implements MetadataInterface
18
{
19
    /**
20
     * @param bool $bIsExcluded
21
     * @param array $aProperties
22
     * @param array $aProtectedMethods
23
     */
24
    public function __construct(private bool $bIsExcluded,
25
        private array $aProperties, private array $aProtectedMethods)
26
    {}
27
28
    /**
29
     * @inheritDoc
30
     */
31
    public function isExcluded(): bool
32
    {
33
        return $this->bIsExcluded;
34
    }
35
36
    /**
37
     * @inheritDoc
38
     */
39
    public function getProperties(): array
40
    {
41
        return $this->aProperties;
42
    }
43
44
    /**
45
     * @inheritDoc
46
     */
47
    public function getProtectedMethods(): array
48
    {
49
        return $this->aProtectedMethods;
50
    }
51
}
52