1 | <?php |
||
14 | final class InMemoryRecorder implements PlayerInterface, RecorderInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var ResponseInterface[] |
||
18 | */ |
||
19 | private $responses = []; |
||
20 | |||
21 | 5 | public function replay(string $name): ?ResponseInterface |
|
25 | |||
26 | 4 | public function record(string $name, ResponseInterface $response): void |
|
30 | |||
31 | 1 | public function clear(): void |
|
35 | } |
||
36 |