public function __construct($path, $contents, $filesystem = null) { $this->path = $path; $this->contents = $contents; $this->filesystem = $filesystem ?: new Filesystem(); }