New PHP 7.1 iterable return type for entities.

This commit is contained in:
Alexey Skobkin 2017-01-13 02:38:33 +03:00
parent 3f5e9bda5e
commit 69d72085d0
3 changed files with 8 additions and 8 deletions

View file

@ -204,7 +204,7 @@ class Comment
/**
* @return File[]|ArrayCollection
*/
public function getFiles()
public function getFiles(): iterable
{
return $this->files;
}
@ -256,7 +256,7 @@ class Comment
/**
* @return Comment[]|ArrayCollection
*/
public function getChildren()
public function getChildren(): iterable
{
return $this->children;
}

View file

@ -199,7 +199,7 @@ class Post
*
* @return File[]|ArrayCollection
*/
public function getFiles()
public function getFiles(): iterable
{
return $this->files;
}
@ -222,7 +222,7 @@ class Post
*
* @return PostTag[]|ArrayCollection
*/
public function getPostTags()
public function getPostTags(): iterable
{
return $this->postTags;
}
@ -279,7 +279,7 @@ class Post
*
* @return Comment[]|ArrayCollection
*/
public function getComments()
public function getComments(): iterable
{
return $this->comments;
}

View file

@ -137,7 +137,7 @@ class User
/**
* @return Subscription[]|ArrayCollection
*/
public function getSubscribers()
public function getSubscribers(): iterable
{
return $this->subscribers;
}
@ -145,7 +145,7 @@ class User
/**
* @return Subscription[]|ArrayCollection
*/
public function getSubscriptions()
public function getSubscriptions(): iterable
{
return $this->subscriptions;
}
@ -160,7 +160,7 @@ class User
/**
* @return SubscriptionEvent[]|ArrayCollection
*/
public function getNewSubscriberEvents()
public function getNewSubscriberEvents(): iterable
{
return $this->newSubscriberEvents;
}