for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Orm\Model;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Uxmp\Core\Orm\Repository\CatalogRepository;
#[ORM\Entity(repositoryClass: CatalogRepository::class)]
#[ORM\Table(name: 'catalog')]
class Catalog implements CatalogInterface
{
#[ORM\Column(type: Types::INTEGER)]
#[ORM\Id, ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
#[ORM\Column(type: Types::STRING)]
private string $path = '';
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $last_updated = null;
public function getId(): int
return $this->id;
}
public function getPath(): string
return $this->path;
public function setPath(string $path): CatalogInterface
$this->path = $path;
return $this;
/**
* Returns the date of the last catalog update
*/
public function getLastUpdated(): ?DateTimeInterface
return $this->last_updated;
* Sets the date of the last catalog update
public function setLastUpdated(DateTimeInterface $value): CatalogInterface
$this->last_updated = $value;