<?phpnamespace App\DTO;use DateTime;use JsonSerializable;class NewsDTO implements JsonSerializable{ /** * @var integer */ private $newsID; /** * @var string */ private $token; /** * @var string */ private $newsHeadline; /** * @var string */ private $newsHeader; /** * @var string */ private $observations; /** * @var string */ private $category; /** * @var DateTime */ private $newsPublicationDate; /** * @var DateTime */ private $newsDateCreation; /** * @var string */ private $newsSettingsCompany; /** * @var string */ private $newsAuthor; /** * @var string */ private $language; /** * @var string */ private $document1; /** * @var string */ private $document2; /** * @var string */ private $document3; /** * @var boolean */ private $enabled; /** * @var string */ private $urlPublishing; /** * @var float */ private $price; /** * @var string */ private $slug; /** * @var string */ private $metaDescription; /** * @var string */ private $metaTitle; /** * @return mixed */ public function getNewsID() { return $this->newsID; } /** * @param mixed $newsID */ public function setNewsID($newsID) { $this->newsID = $newsID; } /** * @return string */ public function getToken() { return $this->token; } /** * @param string $token */ public function setToken($token) { $this->token = $token; } /** * @return mixed */ public function getNewsHeadline() { return $this->newsHeadline; } /** * @param mixed $newsHeadline */ public function setNewsHeadline($newsHeadline) { $this->newsHeadline = $newsHeadline; } /** * @return mixed */ public function getNewsHeader() { return $this->newsHeader; } /** * @param mixed $newsHeader */ public function setNewsHeader($newsHeader) { $this->newsHeader = $newsHeader; } /** * @return string */ public function getObservations() { return $this->observations; } /** * @param string $observations */ public function setObservations($observations) { $this->observations = $observations; } /** * @return string */ public function getCategory() { return $this->category; } /** * @param string $category */ public function setCategory($category) { $this->category = $category; } /** * @return DateTime */ public function getNewsPublicationDate() { return $this->newsPublicationDate; } /** * @param DateTime $newsPublicationDate */ public function setNewsPublicationDate($newsPublicationDate) { $this->newsPublicationDate = $newsPublicationDate; } /** * @return DateTime */ public function getNewsDateCreation() { return $this->newsDateCreation; } /** * @param DateTime $newsDateCreation */ public function setNewsDateCreation($newsDateCreation) { $this->newsDateCreation = $newsDateCreation; } /** * @return mixed */ public function getNewsSettingsCompany() { return $this->newsSettingsCompany; } /** * @param mixed $newsSettingsCompany */ public function setNewsSettingsCompany($newsSettingsCompany) { $this->newsSettingsCompany = $newsSettingsCompany; } /** * @return mixed */ public function getNewsAuthor() { return $this->newsAuthor; } /** * @param mixed $newsAuthor */ public function setNewsAuthor($newsAuthor) { $this->newsAuthor = $newsAuthor; } /** * @return string */ public function getLanguage() { return $this->language; } /** * @param string $language */ public function setLanguage($language) { $this->language = $language; } /** * @return string */ public function getDocument1() { return $this->document1; } /** * @param string $document1 */ public function setDocument1($document1) { $this->document1 = $document1; } /** * @return string */ public function getDocument2() { return $this->document2; } /** * @param string $document2 */ public function setDocument2($document2) { $this->document2 = $document2; } /** * @return string */ public function getDocument3() { return $this->document3; } /** * @param string $document3 */ public function setDocument3($document3) { $this->document3 = $document3; } /** * @return bool */ public function isEnabled() { return $this->enabled; } /** * @param bool $enabled */ public function setEnabled($enabled) { $this->enabled = $enabled; } /** * @return string */ public function getUrlPublishing() { return $this->urlPublishing; } /** * @param string $urlPublishing */ public function setUrlPublishing($urlPublishing) { $this->urlPublishing = $urlPublishing; } /** * @return float */ public function getPrice() { return $this->price; } /** * @param float $price */ public function setPrice($price) { $this->price = $price; } public function getSlug(): string{ return $this->slug; } public function setSlug($slug){ $this->slug = $slug; } public function getMetaDescription(): string{ return $this->metaDescription; } public function setMetaDescription($metaDescription){ $this->metaDescription = $metaDescription; } public function getMetaTitle(): string{ return $this->metaTitle; } public function setMetaTitle($metaTitle){ $this->metaTitle = $metaTitle; } /** * Specify data which should be serialized to JSON * @link https://php.net/manual/en/jsonserializable.jsonserialize.php * @return mixed data which can be serialized by <b>json_encode</b>, * which is a value of any type other than a resource. * @since 5.4.0 */ public function jsonSerialize() { // TODO: Implement jsonSerialize() method. $collection = array(); $collection["newsID"] = $this->newsID; $collection["token"] = $this->token; $collection["newsHeadline"] = $this->newsHeadline; $collection["newsHeader"] = $this->newsHeader; $collection["observations"] = $this->observations; $collection["category"] = $this->category; $collection["newsPublicationDate"] = $this->newsPublicationDate; $collection["newsDateCreation"] = $this->newsDateCreation; $collection["newsSettingsCompany"] = $this->newsSettingsCompany; $collection["newsAuthor"] = $this->newsAuthor; $collection["document1"] = $this->document1; $collection["document2"] = $this->document2; $collection["document3"] = $this->document3; $collection["language"] = $this->language; $collection["enabled"] = $this->enabled; $collection["urlPublishing"] = $this->urlPublishing; $collection["price"] = $this->price; $collection["slug"] = $this->slug; $collection["metaDescription"] = $this->metaDescription; $collection["metaTitle"] = $this->metaTitle; return $collection; }}