/** * Sets new file contents * * @param string $contents new file contents * @param string|null $filePath optional path if new contents should be saved in a new file * * @return bool */ public function save($contents, $filePath = null) { return parent::save($contents, $this->newFileName ? Path::combine($this->getPath(), $this->newFileName) : null); }