New PHP 7.1 iterable return type for entities.
This commit is contained in:
parent
3f5e9bda5e
commit
69d72085d0
|
@ -204,7 +204,7 @@ class Comment
|
||||||
/**
|
/**
|
||||||
* @return File[]|ArrayCollection
|
* @return File[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getFiles()
|
public function getFiles(): iterable
|
||||||
{
|
{
|
||||||
return $this->files;
|
return $this->files;
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ class Comment
|
||||||
/**
|
/**
|
||||||
* @return Comment[]|ArrayCollection
|
* @return Comment[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getChildren()
|
public function getChildren(): iterable
|
||||||
{
|
{
|
||||||
return $this->children;
|
return $this->children;
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,7 +199,7 @@ class Post
|
||||||
*
|
*
|
||||||
* @return File[]|ArrayCollection
|
* @return File[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getFiles()
|
public function getFiles(): iterable
|
||||||
{
|
{
|
||||||
return $this->files;
|
return $this->files;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ class Post
|
||||||
*
|
*
|
||||||
* @return PostTag[]|ArrayCollection
|
* @return PostTag[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getPostTags()
|
public function getPostTags(): iterable
|
||||||
{
|
{
|
||||||
return $this->postTags;
|
return $this->postTags;
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ class Post
|
||||||
*
|
*
|
||||||
* @return Comment[]|ArrayCollection
|
* @return Comment[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getComments()
|
public function getComments(): iterable
|
||||||
{
|
{
|
||||||
return $this->comments;
|
return $this->comments;
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ class User
|
||||||
/**
|
/**
|
||||||
* @return Subscription[]|ArrayCollection
|
* @return Subscription[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getSubscribers()
|
public function getSubscribers(): iterable
|
||||||
{
|
{
|
||||||
return $this->subscribers;
|
return $this->subscribers;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ class User
|
||||||
/**
|
/**
|
||||||
* @return Subscription[]|ArrayCollection
|
* @return Subscription[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getSubscriptions()
|
public function getSubscriptions(): iterable
|
||||||
{
|
{
|
||||||
return $this->subscriptions;
|
return $this->subscriptions;
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ class User
|
||||||
/**
|
/**
|
||||||
* @return SubscriptionEvent[]|ArrayCollection
|
* @return SubscriptionEvent[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getNewSubscriberEvents()
|
public function getNewSubscriberEvents(): iterable
|
||||||
{
|
{
|
||||||
return $this->newSubscriberEvents;
|
return $this->newSubscriberEvents;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue