_Middleware   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 3

2 Methods

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