| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function getProxyForName($classname) |
||
| 44 | { |
||
| 45 | if (!$this->supports($classname)) { |
||
| 46 | throw new UnsupportedClassException("Class " . $classname . " not found"); |
||
| 47 | } |
||
| 48 | |||
| 49 | if (!isset($this->proxies[$classname])) { |
||
| 50 | $proxy = new ProxyAccessor($this->classes[$classname]); |
||
| 51 | $proxy->load(); |
||
| 52 | $this->proxies[$classname] = $proxy; |
||
| 53 | } |
||
| 54 | |||
| 55 | return $this->proxies[$classname]; |
||
| 56 | } |
||
| 57 | |||
| 67 |