Passed
Branch master (3ad5d4)
by refat
26:57
created

Controller::countries()   A

Complexity

Conditions 6
Paths 7

Size

Total Lines 13
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 9
c 0
b 0
f 0
nc 7
nop 2
dl 0
loc 13
rs 9.2222
1
<?php
2
3
namespace System;
4
use DateTime;
5
6
abstract class Controller
7
{
8
  /**
9
   * Application Object
10
   *
11
   * @var \System\Application
12
   */
13
  protected $app;
14
15
  public function __construct(Application $app)
16
  {
17
    $this->app = $app;
18
  }
19
20
  /**
21
   * Call shared Application Objects dynamically
22
   *
23
   * @param string $key
24
   * @return mixed
25
   */
26
  public function __get($key)
27
  {
28
    return $this->app->get($key);
29
  }
30
}
31