SebastianBergmann\PHPLOC\Log\CSV\History::__construct PHP Method

__construct() public method

Construct the history printer
public __construct ( string $filename )
$filename string The name of the file to write to
    public function __construct($filename)
    {
        $this->file = fopen($filename, 'w+');
        if (!$this->file) {
            throw new \RuntimeException('Could not open file for writing');
        }
    }