url = $data['url'] ?? null; $this->language = $data['language'] ?? null; $this->source = $data['source'] ?? null; $this->date = $data['date'] ?? null; } /* Get the URL. */ public function getURL(): ?string { return $this->url; } /* Get the language. */ public function getLanguage(): ?string { return $this->language; } /* Get the source that published it. */ public function getSource(): ?string { return $this->source; } /* Get the date it was posted. */ public function getDate(): ?string { return $this->date; } }