public function __construct(IO $io, $path) { $this->io = $io; if ($path == '') { $this->path = $path; } else { $this->path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; } }