Passed
Push — master ( a06cf8...6d2dda )
by Jens
05:03
created

FieldContainer::__get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 7
rs 9.4285
1
<?php
2
/**
3
 * Created by jensk on 12-1-2018.
4
 */
5
6
namespace CloudControl\Cms\storage\entities;
7
8
9
class FieldContainer
10
{
11
    public function __get($property)
12
    {
13
        if (isset($this->$property)) {
14
            return $this->$property;
15
        } else {
16
            return array(
17
                0 => ''
18
            );
19
        }
20
    }
21
}