<?php
namespace App\Entity;
use App\Entity\SuperClass\BaseEntity;
use App\Repository\ProductStatusRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProductStatusRepository::class)
*/
class ProductStatus extends BaseEntity
{
/**
* @ORM\Column(type="string", length=255)
*/
private ?string $title;
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $name): self
{
$this->title = $name;
return $this;
}
public function toArray()
{
return [
'id' => $this->getId(),
'title' => $this->getTitle(),
'cards' => [],
];
}
}