Completed
Push — work-fleets ( 73ed38...ce5b3a )
by SuperNova.WS
05:53
created

ContainerPlus   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 23
rs 10
c 1
b 0
f 1
wmc 5
lcom 0
cbo 1

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __set() 0 3 1
A __get() 0 3 1
A __isset() 0 3 1
A __unset() 0 3 1
A __call() 0 3 1
1
<?php
2
3
namespace Pimple;
4
5
/**
6
 * Class ContainerPlus
7
 *
8
 * Extends original container to allow access to properties and function to document them
9
 *
10
 * @package Pimple
11
 */
12
class ContainerPlus extends Container {
13
14
  public function __set($name, $value) {
15
    $this->offsetSet($name, $value);
16
  }
17
18
  public function __get($name) {
19
    return $this->offsetGet($name);
20
  }
21
22
  public function __isset($name) {
23
    return $this->offsetExists($name);
24
  }
25
26
  public function __unset($name) {
27
    $this->offsetUnset($name);
28
  }
29
30
  public function __call($name, $arguments) {
31
    return call_user_func_array($this->$name, $arguments);
32
  }
33
34
}
35