Post phpDoc fixes and type missing type hinting.

This commit is contained in:
Alexey Skobkin 2017-01-13 02:39:44 +03:00
parent 69d72085d0
commit 22a26d5298
1 changed files with 1 additions and 11 deletions

View File

@ -103,11 +103,7 @@ class Post
private $comments;
/**
* Post constructor.
* @param string $id
*/
public function __construct($id)
public function __construct(string $id)
{
$this->id = $id;
@ -195,8 +191,6 @@ class Post
}
/**
* Get files
*
* @return File[]|ArrayCollection
*/
public function getFiles(): iterable
@ -218,8 +212,6 @@ class Post
}
/**
* Get tags
*
* @return PostTag[]|ArrayCollection
*/
public function getPostTags(): iterable
@ -275,8 +267,6 @@ class Post
}
/**
* Get comments
*
* @return Comment[]|ArrayCollection
*/
public function getComments(): iterable