Property   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A __construct() 0 5 1
A isExits() 0 3 1
A getInvalidValue() 0 3 1
1
<?php
2
/**
3
 * Schema Validator
4
 *
5
 * @author Vlad Shashkov <[email protected]>
6
 * @copyright Copyright (c) 2021, The Myaza Software
7
 */
8
9
declare(strict_types=1);
10
11
namespace SchemaValidator\Metadata;
12
13
/**
14
 * @codeCoverageIgnore
15
 */
16
final class Property
17
{
18
    public function __construct(
19
        private string $name,
20
        private ?string $invalidValue,
21
        private bool $exits = false,
22
    ) {
23
    }
24
25
    public function getName(): string
26
    {
27
        return $this->name;
28
    }
29
30
    public function getInvalidValue(): ?string
31
    {
32
        return $this->invalidValue;
33
    }
34
35
    public function isExits(): bool
36
    {
37
        return $this->exits;
38
    }
39
}
40