diff --git a/src/ncc/Objects/HttpResponseCache.php b/src/ncc/Objects/HttpResponseCache.php new file mode 100644 index 0000000..dde55ce --- /dev/null +++ b/src/ncc/Objects/HttpResponseCache.php @@ -0,0 +1,56 @@ +httpResponse = $httpResponse; + $this->ttl = $ttl; + } + + /** + * Returns the cached response + * + * @return HttpResponse + */ + public function getHttpResponse(): HttpResponse + { + return $this->httpResponse; + } + + /** + * Returns the Unix Timestamp of when the cache becomes invalid + * + * @return int + */ + public function getTtl(): int + { + return $this->ttl; + } + } \ No newline at end of file