*/ class Stream { protected $country; protected $author; protected $languages = []; protected $difficulty; protected $url; protected $title; protected $views; public function setCountry($country) { $this->country = $country; return $this; } public function getCountry() { return $this->country; } public function setAuthor($author) { $this->author = $author; return $this; } public function getAuthor() { return $this->author; } public function setLanguages(array $languages) { $this->languages = $languages; return $this; } public function getLanguages() { return $this->languages; } public function setUrl($url) { $this->url = $url; return $this; } public function getUrl() { return $this->url; } public function setViews($views) { $this->views = (int) $views; return $this; } public function getViews() { return $this->views; } public function setTitle($title) { $this->title = $title; return $this; } public function getTitle() { return $this->title; } public function setDifficulty($difficulty) { $this->difficulty = $difficulty; return $this; } public function getDifficulty() { return $this->difficulty; } }