| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | public function find_renderer($class) |
||
| 59 | { |
||
| 60 | if ($this instanceof $class) |
||
| 61 | { |
||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | if ($this->template_resolver instanceof $class) |
||
| 66 | { |
||
| 67 | return $this->template_resolver; |
||
| 68 | } |
||
| 69 | |||
| 70 | if ($this->template_resolver instanceof TemplateResolverDecorator) |
||
| 71 | { |
||
| 72 | return $this->template_resolver->find_renderer($class); |
||
| 73 | } |
||
| 74 | |||
| 75 | return null; |
||
| 76 | } |
||
| 77 | } |
||
| 78 |