Passed
Push — master ( 66adc4...f8e97d )
by Alexander
10:22
created

Post2   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
dl 0
loc 15
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Arrays\Tests;
6
7
final class Post2
8
{
9
    public $id = 123;
10
    public $content = 'test';
11
    private $secret = 's';
12
13
    public function getSecret(): string
14
    {
15
        return $this->secret;
16
    }
17
18
    /** @noinspection MagicMethodsValidityInspection */
19
    public function __get($name)
20
    {
21
        return $this->$name;
22
    }
23
}
24