src/Data/Reader.php
public function read($file)
	{
		$this->file = $file;

		if($this->fs->exists($this->file)) {

			$this->data = file_get_contents($this->file);

			return $this;
		}

		// Throw exception
		throw new Exceptions\FileNotExists($this->file);
	}
public function read($file)
	{
		$this->file = $file;

		if($this->fs->exists($this->file)) {

			$this->data = file_get_contents($this->file);

			return $this;
		}

		// Throw exception
		throw new Exceptions\FileNotExists($this->file);
	}
public function read ( $ file ) { $ this -> file = $ file ; if ( $ this -> fs -> exists ( $ this -> file ) ) { $ this -> data = file_get_contents ( $ this -> file ) ; return $ this ; } // Throw exception throw new Exceptions \ FileNotExists ( $ this -> file ) ; }
Read from the file

@param String $file
@return Reader
@author Dan Cox

@throws Exceptions\FileNotExists
Read from the file