Skip to content

Commit

Permalink
Added static type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
neildaniels committed Aug 27, 2021
1 parent e0d1701 commit 8ae7a82
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
28 changes: 14 additions & 14 deletions lib/Tmdb/Model/Watch/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ class Provider extends AbstractModel implements CountryFilter
private $type;

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

/**
* @param string $iso31661
* @param string $iso31661|null
* @return $this
*/
public function setIso31661($iso31661)
public function setIso31661(?string $iso31661): self
{
$this->iso31661 = $iso31661;

Expand All @@ -60,7 +60,7 @@ public function setIso31661($iso31661)
/**
* @return int|null
*/
public function getId()
public function getId(): ?int
{
return $this->id;
}
Expand All @@ -69,7 +69,7 @@ public function getId()
* @param int|null $id
* @return $this
*/
public function setId($id)
public function setId(?int $id): self
{
$this->id = $id;

Expand All @@ -79,7 +79,7 @@ public function setId($id)
/**
* @return string|null
*/
public function getName()
public function getName(): ?string
{
return $this->Name;
}
Expand All @@ -88,7 +88,7 @@ public function getName()
* @param string|null $name
* @return $this
*/
public function setName($name)
public function setName(?string $name): self
{
$this->name = $name;

Expand All @@ -98,7 +98,7 @@ public function setName($name)
/**
* @return string|null
*/
public function getLogoPath()
public function getLogoPath(): ?string
{
return $this->logoPath;
}
Expand All @@ -107,7 +107,7 @@ public function getLogoPath()
* @param string|null $logoPath
* @return $this
*/
public function setLogoPath($logoPath)
public function setLogoPath(?string $logoPath): self
{
$this->logoPath = $logoPath;

Expand All @@ -117,7 +117,7 @@ public function setLogoPath($logoPath)
/**
* @return int|null
*/
public function getDisplayPriority()
public function getDisplayPriority(): ?int
{
return $this->displayPriority;
}
Expand All @@ -126,7 +126,7 @@ public function getDisplayPriority()
* @param int|null $displayPriority
* @return $this
*/
public function setDisplayPriority($displayPriority)
public function setDisplayPriority(?int $displayPriority): self
{
$this->displayPriority = $displayPriority;

Expand All @@ -136,7 +136,7 @@ public function setDisplayPriority($displayPriority)
/**
* @return string|null
*/
public function getType()
public function getType(): ?string
{
return $this->type;
}
Expand All @@ -145,7 +145,7 @@ public function getType()
* @param string|null $type
* @return $this
*/
public function setType($type)
public function setType(?string $type): self
{
$this->type = $type;

Expand Down
22 changes: 11 additions & 11 deletions lib/Tmdb/Model/Watch/Providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct()
/**
* @return string|null
*/
public function getLink()
public function getLink(): ?string
{
return $this->link;
}
Expand All @@ -61,17 +61,17 @@ public function getLink()
* @param string|null $link
* @return $this
*/
public function setLink($link)
public function setLink(?string $link): self
{
$this->link = $link;

return $this;
}

/**
* @return string
* @return string|null
*/
public function getIso31661()
public function getIso31661(): ?string
{
return $this->iso31661;
}
Expand All @@ -80,7 +80,7 @@ public function getIso31661()
* @param string $iso31661
* @return $this
*/
public function setIso31661($iso31661)
public function setIso31661(?string $iso31661): self
{
$this->iso31661 = $iso31661;

Expand All @@ -90,7 +90,7 @@ public function setIso31661($iso31661)
/**
* @return GenericCollection
*/
public function getFlatrate()
public function getFlatrate(): GenericCollection
{
return $this->flatrate;
}
Expand All @@ -99,7 +99,7 @@ public function getFlatrate()
* @param GenericCollection $flatrate
* @return $this
*/
public function setFlatrate($flatrate)
public function setFlatrate(GenericCollection $flatrate): self
{
$this->flatrate = $flatrate;

Expand All @@ -109,7 +109,7 @@ public function setFlatrate($flatrate)
/**
* @return GenericCollection
*/
public function getRent()
public function getRent(): GenericCollection
{
return $this->rent;
}
Expand All @@ -118,7 +118,7 @@ public function getRent()
* @param GenericCollection $rent
* @return $this
*/
public function setRent($rent)
public function setRent(GenericCollection $rent): self
{
$this->rent = $rent;

Expand All @@ -128,7 +128,7 @@ public function setRent($rent)
/**
* @return GenericCollection
*/
public function getBuy()
public function getBuy(): GenericCollection
{
return $this->buy;
}
Expand All @@ -137,7 +137,7 @@ public function getBuy()
* @param GenericCollection $buy
* @return $this
*/
public function setBuy($buy)
public function setBuy(GenericCollection $buy): self
{
$this->buy = $buy;

Expand Down

0 comments on commit 8ae7a82

Please sign in to comment.