Skip to content

Commit

Permalink
Fix missing type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcontento committed Mar 15, 2017
1 parent a99fef7 commit ac263ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/Book/JsonApi/Resource/AuthorResourceTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AuthorResourceTransformer extends AbstractResourceTransformer
* @param array $author
* @return string
*/
public function getType($author)
public function getType($author) : string
{
return "author";
}
Expand All @@ -29,7 +29,7 @@ public function getType($author)
* @param array $author
* @return string
*/
public function getId($author)
public function getId($author) : string
{
return $author["id"];
}
Expand All @@ -43,7 +43,7 @@ public function getId($author)
* @param array $author
* @return array
*/
public function getMeta($author)
public function getMeta($author) : array
{
return [];
}
Expand Down Expand Up @@ -72,7 +72,7 @@ public function getLinks($author)
* @param array $author
* @return array
*/
public function getAttributes($author)
public function getAttributes($author) : array
{
return [
"name" => function (array $author) {
Expand All @@ -87,7 +87,7 @@ public function getAttributes($author)
* @param array $author
* @return array
*/
public function getDefaultIncludedRelationships($author)
public function getDefaultIncludedRelationships($author) : array
{
return [];
}
Expand All @@ -102,7 +102,7 @@ public function getDefaultIncludedRelationships($author)
* @param array $author
* @return array
*/
public function getRelationships($author)
public function getRelationships($author) : array
{
return [];
}
Expand Down

0 comments on commit ac263ba

Please sign in to comment.