Skip to content

Commit 979f570

Browse files
author
nouser
committed
Extended the network model to match all properties
1 parent e330e8f commit 979f570

1 file changed

Lines changed: 102 additions & 0 deletions

File tree

lib/Tmdb/Model/Network.php

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ class Network extends AbstractModel
3030
public static $properties = [
3131
'id',
3232
'name',
33+
'headquarters',
34+
'homepage',
35+
'logo_path',
36+
'origin_country'
3337
];
38+
3439
/**
3540
* @var integer
3641
*/
@@ -39,6 +44,26 @@ class Network extends AbstractModel
3944
* @var string
4045
*/
4146
private $name;
47+
/**
48+
* @var string
49+
*/
50+
private $headquarters;
51+
52+
/**
53+
* @var string
54+
*/
55+
private $homepage;
56+
57+
/**
58+
* @var string|null
59+
*/
60+
private $logoPath;
61+
62+
/**
63+
* @var string
64+
*/
65+
private $originCountry;
66+
4267

4368
/**
4469
* @return integer
@@ -77,4 +102,81 @@ public function setName($name)
77102

78103
return $this;
79104
}
105+
106+
/**
107+
* @return string
108+
*/
109+
public function getHeadquarters(): string
110+
{
111+
return $this->headquarters;
112+
}
113+
114+
/**
115+
* @param string $headquarters
116+
* @return Network
117+
*/
118+
public function setHeadquarters(string $headquarters): Network
119+
{
120+
$this->headquarters = $headquarters;
121+
122+
return $this;
123+
}
124+
125+
/**
126+
* @return string
127+
*/
128+
public function getHomepage(): string
129+
{
130+
return $this->homepage;
131+
}
132+
133+
/**
134+
* @param string $homepage
135+
* @return Network
136+
*/
137+
public function setHomepage(string $homepage): Network
138+
{
139+
$this->homepage = $homepage;
140+
141+
return $this;
142+
}
143+
144+
/**
145+
* @return string|null
146+
*/
147+
public function getLogoPath(): ?string
148+
{
149+
return $this->logoPath;
150+
}
151+
152+
/**
153+
* @param string|null $logoPath
154+
* @return Network
155+
*/
156+
public function setLogoPath(?string $logoPath): Network
157+
{
158+
$this->logoPath = $logoPath;
159+
160+
return $this;
161+
}
162+
163+
/**
164+
* @return string
165+
*/
166+
public function getOriginCountry(): string
167+
{
168+
return $this->originCountry;
169+
}
170+
171+
/**
172+
* @param string $originCountry
173+
* @return Network
174+
*/
175+
public function setOriginCountry(string $originCountry): Network
176+
{
177+
$this->originCountry = $originCountry;
178+
179+
return $this;
180+
}
181+
80182
}

0 commit comments

Comments
 (0)