| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 424 | public function generate(MockConfiguration $config) |
|
| 34 | { |
||
| 35 | 424 | $hash = $config->getHash(); |
|
| 36 | 424 | if (isset($this->cache[$hash])) { |
|
| 37 | 32 | return $this->cache[$hash]; |
|
| 38 | } |
||
| 39 | |||
| 40 | 398 | $definition = $this->generator->generate($config); |
|
| 41 | 397 | $this->cache[$hash] = $definition; |
|
| 42 | |||
| 43 | 397 | return $definition; |
|
| 44 | } |
||
| 45 | } |
||
| 46 |