Skip to content

Commit

Permalink
Extended the network model to match all properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nouser committed Oct 6, 2021
1 parent e330e8f commit 979f570
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions lib/Tmdb/Model/Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ class Network extends AbstractModel
public static $properties = [
'id',
'name',
'headquarters',
'homepage',
'logo_path',
'origin_country'
];

/**
* @var integer
*/
Expand All @@ -39,6 +44,26 @@ class Network extends AbstractModel
* @var string
*/
private $name;
/**
* @var string
*/
private $headquarters;

/**
* @var string
*/
private $homepage;

/**
* @var string|null
*/
private $logoPath;

/**
* @var string
*/
private $originCountry;


/**
* @return integer
Expand Down Expand Up @@ -77,4 +102,81 @@ public function setName($name)

return $this;
}

/**
* @return string
*/
public function getHeadquarters(): string
{
return $this->headquarters;
}

/**
* @param string $headquarters
* @return Network
*/
public function setHeadquarters(string $headquarters): Network
{
$this->headquarters = $headquarters;

return $this;
}

/**
* @return string
*/
public function getHomepage(): string
{
return $this->homepage;
}

/**
* @param string $homepage
* @return Network
*/
public function setHomepage(string $homepage): Network
{
$this->homepage = $homepage;

return $this;
}

/**
* @return string|null
*/
public function getLogoPath(): ?string
{
return $this->logoPath;
}

/**
* @param string|null $logoPath
* @return Network
*/
public function setLogoPath(?string $logoPath): Network
{
$this->logoPath = $logoPath;

return $this;
}

/**
* @return string
*/
public function getOriginCountry(): string
{
return $this->originCountry;
}

/**
* @param string $originCountry
* @return Network
*/
public function setOriginCountry(string $originCountry): Network
{
$this->originCountry = $originCountry;

return $this;
}

}

0 comments on commit 979f570

Please sign in to comment.