for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Modules\Comments\Persistence\Doctrine\Entity;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Ulid;
#[ORM\Entity]
#[ORM\Table(name: "POST_HEADERS")]
class CommentPostHeader
{
#[ORM\Id]
#[ORM\Column(type: "ulid", unique: true)]
private Ulid $id;
#[ORM\Column(type: "string")]
private string $title;
#[ORM\Column(type: "json")]
private array $tags = [];
#[ORM\Column(type: "integer")]
private int $version;
#[ORM\OneToMany(mappedBy: 'post', targetEntity: Comment::class)]
private Collection $comments;
/**
* @return Ulid
*/
public function getId(): Ulid
return $this->id;
}
* @param Ulid $id
public function setId(Ulid $id): void
$this->id = $id;
* @return string
public function getTitle(): string
return $this->title;
* @param string $title
public function setTitle(string $title): void
$this->title = $title;
* @return array
public function getTags(): array
return $this->tags;
* @param array $tags
public function setTags(array $tags): void
$this->tags = $tags;
* @return int
public function getVersion(): int
return $this->version;
* @param int $version
public function setVersion(int $version): void
$this->version = $version;
* @return Collection
public function getComments(): Collection
return $this->comments;
* @param Collection $comments
public function setComments(Collection $comments): void
$this->comments = $comments;