Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function getProfile(Plugin $plugin, RequestInterface $request) |
||
47 | { |
||
48 | $key = spl_object_hash($plugin) . '-' . spl_object_hash($request); |
||
49 | |||
50 | if (!isset($this->profiles[$key])) { |
||
51 | $this->profiles[$key] = new Profile($plugin, $request); |
||
52 | } |
||
53 | |||
54 | return $this->profiles[$key]; |
||
55 | } |
||
56 | } |