Post phpDoc fixes and type missing type hinting.
This commit is contained in:
parent
69d72085d0
commit
22a26d5298
|
@ -103,11 +103,7 @@ class Post
|
||||||
private $comments;
|
private $comments;
|
||||||
|
|
||||||
|
|
||||||
/**
|
public function __construct(string $id)
|
||||||
* Post constructor.
|
|
||||||
* @param string $id
|
|
||||||
*/
|
|
||||||
public function __construct($id)
|
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
|
|
||||||
|
@ -195,8 +191,6 @@ class Post
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get files
|
|
||||||
*
|
|
||||||
* @return File[]|ArrayCollection
|
* @return File[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getFiles(): iterable
|
public function getFiles(): iterable
|
||||||
|
@ -218,8 +212,6 @@ class Post
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get tags
|
|
||||||
*
|
|
||||||
* @return PostTag[]|ArrayCollection
|
* @return PostTag[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getPostTags(): iterable
|
public function getPostTags(): iterable
|
||||||
|
@ -275,8 +267,6 @@ class Post
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get comments
|
|
||||||
*
|
|
||||||
* @return Comment[]|ArrayCollection
|
* @return Comment[]|ArrayCollection
|
||||||
*/
|
*/
|
||||||
public function getComments(): iterable
|
public function getComments(): iterable
|
||||||
|
|
Loading…
Reference in a new issue