for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Skobkin\Bundle\PointToolsBundle\DTO\Api;
class Comment implements ValidableInterface
{
/**
* @var string|null
*/
private $postId;
* @var int|null
private $number;
private $toCommentId;
private $created;
private $text;
* @var User|null
private $author;
* @var bool|null
private $isRec;
public function getPostId(): ?string
return $this->postId;
}
public function setPostId(?string $postId): void
$this->postId = $postId;
public function getNumber(): ?int
return $this->number;
public function setNumber(?int $number): void
$this->number = $number;
public function getToCommentId(): ?int
return $this->toCommentId;
public function setToCommentId(?int $toCommentId): void
$this->toCommentId = $toCommentId;
public function getCreated(): string
return $this->created;
public function setCreated(?string $created): void
$this->created = $created;
public function getText(): ?string
return $this->text;
public function setText(?string $text): void
$this->text = $text;
public function getAuthor(): ?User
return $this->author;
public function setAuthor(?User $author): void
$this->author = $author;
public function isIsRec(): ?bool
return $this->isRec;
public function getIsRec(): ?bool
public function setIsRec(?bool $isRec): void
$this->isRec = $isRec;
public function isValid(): bool
if (null !== $this->postId && null !== $this->number && null !== $this->author && null !== $this->text) {
return true;
return false;