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

FieldContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __get() 0 7 2
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
}