Skip to content

Commit

Permalink
Type-hint setName methods
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberiaResurrection committed May 24, 2020
1 parent 6b69b4d commit 67d5914
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/MetadataV3/Edm/Association.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function __construct(string $name, AssociationEnd $endOne = null, Associa
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
Expand All @@ -98,7 +98,7 @@ public function getName()
* @param string $name
* @return self
*/
public function setName($name)
public function setName(string $name): self
{
$this->name = $name;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/MetadataV3/Edm/EntityContainer/AssociationSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(string $name, string $association, End $endOne = nul
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
Expand All @@ -91,7 +91,7 @@ public function getName()
* @param string $name
* @return self
*/
public function setName($name)
public function setName(string $name): self
{
$this->name = $name;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/MetadataV3/Edm/EntityType/NavigationProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function __construct(string $name, string $relationship, string $toRole,
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
Expand All @@ -115,7 +115,7 @@ public function getName()
* @param string $name
* @return self
*/
public function setName($name)
public function setName(string $name): self
{
$this->name = $name;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/MetadataV3/Edm/ModelFunctionParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ModelFunctionParameter extends EdmBase
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
Expand All @@ -75,7 +75,7 @@ public function getName()
* @param string $name
* @return self
*/
public function setName($name)
public function setName(string $name): self
{
$this->name = $name;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/MetadataV3/Edm/OtherTypeConstructs/RowType/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Property extends EdmBase
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
Expand All @@ -85,7 +85,7 @@ public function getName()
* @param string $name
* @return self
*/
public function setName($name)
public function setName(string $name): self
{
$this->name = $name;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions src/MetadataV3/Edm/ValueTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ValueTerm extends EdmBase
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
Expand All @@ -53,7 +53,7 @@ public function getName()
* @param string $name
* @return self
*/
public function setName($name)
public function setName(string $name): self
{
$this->name = $name;
return $this;
Expand Down

0 comments on commit 67d5914

Please sign in to comment.