_Middleware::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
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
}