Message::$postAuthorId added.
This commit is contained in:
parent
728464005e
commit
16489b509e
|
@ -68,6 +68,11 @@ class Message implements ValidableInterface
|
||||||
*/
|
*/
|
||||||
private $link;
|
private $link;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int|null
|
||||||
|
*/
|
||||||
|
private $postAuthorId;
|
||||||
|
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $postId;
|
private $postId;
|
||||||
|
|
||||||
|
@ -136,7 +141,7 @@ class Message implements ValidableInterface
|
||||||
|
|
||||||
public function isPostRecommendation(): bool
|
public function isPostRecommendation(): bool
|
||||||
{
|
{
|
||||||
return self::TYPE_POST_RECOMMENDATION === $this->a;
|
return self::TYPE_POST_COMMENT_RECOMMENDATION === $this->a;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -243,6 +248,11 @@ class Message implements ValidableInterface
|
||||||
return $this->postId;
|
return $this->postId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPostAuthorId(): ?int
|
||||||
|
{
|
||||||
|
return $this->postAuthorId;
|
||||||
|
}
|
||||||
|
|
||||||
public function getPrivate(): ?bool
|
public function getPrivate(): ?bool
|
||||||
{
|
{
|
||||||
return $this->private;
|
return $this->private;
|
||||||
|
|
|
@ -31,6 +31,9 @@ Skobkin\Bundle\PointToolsBundle\DTO\Api\WebSocket\Message:
|
||||||
postId:
|
postId:
|
||||||
type: string
|
type: string
|
||||||
serialized_name: 'post_id'
|
serialized_name: 'post_id'
|
||||||
|
postAuthorId:
|
||||||
|
type: int
|
||||||
|
serialized_name: 'post_author_id'
|
||||||
private:
|
private:
|
||||||
type: bool
|
type: bool
|
||||||
serialized_name: 'private'
|
serialized_name: 'private'
|
||||||
|
|
Loading…
Reference in a new issue