public function save($path = self::DEFAULT_FILENAME)
	{
		$file = new File($path);

		$file->write(json_encode($this->data));

		return $this;
	}
public function save($path = self::DEFAULT_FILENAME)
	{
		$file = new File($path);

		$file->write(json_encode($this->data));

		return $this;
	}
public function save ( $ path = self :: DEFAULT_FILENAME ) { $ file = new File ( $ path ) ; $ file -> write ( json_encode ( $ this -> data ) ) ; return $ this ; }
Save the settings file at the given location.

@param $path = self::DEFAULT_FILENAME
@return $this
@throws FileException on failure.
Save the settings file at the given location .