public function setFilePath(string $viewFilePath): void
    {
        if (!is_readable($viewFilePath)) {
            throw new Exception("The View file {$viewFilePath} isn't readable.");
        }
        $this->filePath = $viewFilePath;
    }