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() { return $this->url; } /* Get the language. */ public function getLanguage() { return $this->language; } /* Get the source that published it. */ public function getSource() { return $this->source; } /* Get the date it was posted. */ public function getDate() { return $this->date; } }