status = $status; $this->details = $details; $this->datetime = date("Y-m-d\TH:i:s", strtotime($datetime)); $this->location = $location; $this->iscontainerscan = $iscontainerscan; } public function toString(): string { return $this->details; } public function getTimestamp(): int { return strtotime($this->datetime); } public function getDateTime(string $format = "Y-m-d\TH:i:s"): string { return date($format, strtotime($this->datetime)); } public function getLocation() { return $this->location; } public function setLocation(Location $location) { $this->location = $location; } public function getStatus() { return $this->status; } public function isContainerScan() { return $this->iscontainerscan; } }