private function isExpired(string $viewPath) : bool
    {
        $lastModified = DateTime::createFromFormat('U', filemtime($viewPath));

        return $lastModified < new DateTime('-' . $this->lifetime . ' seconds');
    }
private function isExpired(string $viewPath) : bool
    {
        $lastModified = DateTime::createFromFormat('U', filemtime($viewPath));

        return $lastModified < new DateTime('-' . $this->lifetime . ' seconds');
    }
private function isExpired ( string $ viewPath ) : bool { $ lastModified = DateTime :: createFromFormat ( 'U' , filemtime ( $ viewPath ) ) ; return $ lastModified < new DateTime ( '-' . $ this -> lifetime . ' seconds' ) ; }
Checks whether or not a view path is expired

@param string $viewPath The view path to check
@return bool True if the path is expired, otherwise false
Checks whether or not a view path is expired