/** * @param $data * @return bool */ public function printToFile($data) { if (!isset($this->options['path'])) { throw new \Shantilab\BxEcho\Exceptions\EmptyFilePathException(); } if ($this->options['type'] == 'dump') { Debug::dumpToFile($data, null, $this->options['path']); } if ($this->options['type'] == 'write') { Debug::writeToFile($data, null, $this->options['path']); } }