| Conditions | 4 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function __construct($param) |
||
| 37 | { |
||
| 38 | $this->type = gettype($param); |
||
| 39 | if ($this->isObject()) { |
||
| 40 | $this->className = get_class($param); |
||
| 41 | $reflection = new \ReflectionClass($this->className); |
||
| 42 | |||
| 43 | $this->shortClassName = $reflection->getShortName(); |
||
| 44 | |||
| 45 | foreach (class_implements($this->className) as $interface) { |
||
| 46 | //I don't want framework interfaces |
||
| 47 | if (explode("\\", $interface)[0] == explode("\\", $this->className)[0]) { |
||
| 48 | $this->implements[] = $interface; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | |||
| 53 | } |
||
| 54 | |||
| 55 | } |
||
| 56 | |||
| 95 | } |