public function setFilePath(string $viewFilePath): void
    {
        if (!is_readable($viewFilePath)) {
            throw new Exception("The View file {$viewFilePath} isn't readable.");
        }
        $this->filePath = $viewFilePath;
    }
public function setFilePath(string $viewFilePath): void
    {
        if (!is_readable($viewFilePath)) {
            throw new Exception("The View file {$viewFilePath} isn't readable.");
        }
        $this->filePath = $viewFilePath;
    }
public function setFilePath ( string $ viewFilePath ) : void { if ( ! is_readable ( $ viewFilePath ) ) { throw new Exception ( "The View file {$viewFilePath} isn't readable." ) ; } $ this -> filePath = $ viewFilePath ; }
It assosiates the object with view file.
@param string $viewFilePath The path to the file with view markup.
@return void
@throws \nadir2\core\Exception It throws if file isn't readable.
It assosiates the object with view file .