| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function execute() |
||
| 41 | { |
||
| 42 | $ref = new \ReflectionClass($this->class); |
||
| 43 | $arg2Ref = new \ReflectionClass($this->arg2); |
||
| 44 | |||
| 45 | if ($arg2Ref->isInterface()) { |
||
| 46 | return $ref->implementsInterface($this->arg2); |
||
| 47 | } elseif ($ref->isSubclassOf($this->arg2)) { |
||
| 48 | return true; |
||
| 49 | } else { |
||
| 50 | return $this->classToStr($this->class) === $this->classToStr($this->arg2); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 65 | } |