for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smart\EtlBundle\Loader;
/**
* Nicolas Bastien <[email protected]>
*/
abstract class AbstractFileLoader
{
* @var string
protected $folderToLoad;
protected $fileExtension;
public function __construct($folderToLoad, $fileExtension)
$this->folderToLoad = $folderToLoad;
$this->fileExtension = $fileExtension;
}
* @return string
public function getFolderToLoad()
return $this->folderToLoad;
* @param string $folderToLoad
public function setFolderToLoad($folderToLoad)
protected function check()
if (!is_dir($this->folderToLoad)) {
throw new \BadMethodCallException('Invalid folder to load');