src/Options.php
public function setPath(File $path) {
		$this->path = $path;
		if ($this->isCreateIfNotExists() && !$path->isFile()) {
			$path->getParent()->mkdir();
			$path->write("");
			$this->setCreateDefault(true);
			if (!$path->isFile()) {
				throw new FileNotFoundException($path);
			}
		}
		$this->content = $path->getContent();
	}
public function setPath(File $path) {
		$this->path = $path;
		if ($this->isCreateIfNotExists() && !$path->isFile()) {
			$path->getParent()->mkdir();
			$path->write("");
			$this->setCreateDefault(true);
			if (!$path->isFile()) {
				throw new FileNotFoundException($path);
			}
		}
		$this->content = $path->getContent();
	}
public function setPath ( File $ path ) { $ this -> path = $ path ; if ( $ this -> isCreateIfNotExists ( ) && ! $ path -> isFile ( ) ) { $ path -> getParent ( ) -> mkdir ( ) ; $ path -> write ( "" ) ; $ this -> setCreateDefault ( true ) ; if ( ! $ path -> isFile ( ) ) { throw new FileNotFoundException ( $ path ) ; } } $ this -> content = $ path -> getContent ( ) ; }
sets file path

@param File $path file path

@since 0.2.1
@throws FileNotFoundException
sets file path