_Middleware::__get()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nc 2
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: afshin
5
 * Date: 11/13/17
6
 * Time: 1:31 PM
7
 */
8
9
namespace Core\Interfaces;
10
11
12
abstract class _Middleware
13
{
14
15
    protected $container;
16
17
    function __construct($container)
18
    {
19
        $this->container = $container;
20
    }
21
22
    public function __get($property)
23
    {
24
        if ($this->container->{$property}) {
25
            return $this->container->{$property};
26
        }
27
    }
28
29
}