src/VCR/Cassette.php
public function record(Request $request, Response $response)
    {
        if ($this->hasResponse($request)) {
            return;
        }

        $recording = array(
            'request'  => $request->toArray(),
            'response' => $response->toArray()
        );

        $this->storage->storeRecording($recording);
    }
public function record(Request $request, Response $response)
    {
        if ($this->hasResponse($request)) {
            return;
        }

        $recording = array(
            'request'  => $request->toArray(),
            'response' => $response->toArray()
        );

        $this->storage->storeRecording($recording);
    }
public function record ( Request $ request , Response $ response ) { if ( $ this -> hasResponse ( $ request ) ) { return ; } $ recording = array ( 'request' => $ request -> toArray ( ) , 'response' => $ response -> toArray ( ) ) ; $ this -> storage -> storeRecording ( $ recording ) ; }
Records a request and response pair.

@param Request  $request  Request to record.
@param Response $response Response to record.

@return void
Records a request and response pair .