Metadata::isExcluded()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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