VCR\Configuration::setMode PHP Method

setMode() public method

Sets the current mode.
public setMode ( string $mode ) : Configuration
$mode string The mode to set VCR to
return Configuration
    public function setMode($mode)
    {
        Assertion::choice($mode, $this->availableModes, "Mode '{$mode}' does not exist.");
        $this->mode = $mode;
        return $this;
    }