for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Zed\FactFinderSdk\Business\Writer;
abstract class AbstractFileWriter
{
* @var string
protected $fileName;
* @param string $filePath
* @param array $data
* @param bool $append
*
* @return void
abstract public function write($filePath, $data, $append = false);
* @param string $fileName
protected function createDirectory($fileName)
$pathInfo = pathinfo($fileName);
$directory = $pathInfo['dirname'];
if (!file_exists($directory)) {
mkdir($directory);
}