for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Entity;
final class Note
{
private int $id;
private string $name;
private ?string $description;
private $createdAt;
private $updatedAt;
public function getId(): int
return $this->id;
}
public function getName(): string
return $this->name;
public function updateName(string $name): self
$this->name = $name;
return $this;
public function getDescription(): ?string
return $this->description;
public function updateDescription(?string $description): self
$this->description = $description;
public function getCreatedAt(): ?string
return $this->createdAt;
public function updateCreatedAt(?string $createdAt): self
$this->createdAt = $createdAt;
public function getUpdatedAt(): ?string
return $this->updatedAt;
public function updateUpdatedAt(?string $updatedAt): self
$this->updatedAt = $updatedAt;
public function toJson(): object
return json_decode((string) json_encode(get_object_vars($this)), false);