for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Model;
use Application\Traits\HasName;
use Doctrine\ORM\Mapping as ORM;
/**
* An item that can be booked by a user
*
* @ORM\Entity(repositoryClass="Application\Repository\BookableMetadataRepository")
* @ORM\Table(uniqueConstraints={
* @ORM\UniqueConstraint(name="unique_name", columns={"name", "bookable_id"})
* })
*/
class BookableMetadata extends AbstractModel
{
use HasName;
* @var string
* @ORM\Column(type="string", length=191, options={"default" = ""})
private $value = '';
* @var Bookable
* @ORM\ManyToOne(targetEntity="Bookable")
* @ORM\JoinColumns({
* @ORM\JoinColumn(onDelete="CASCADE")
private $bookable;
* @return string
public function getValue(): string
return $this->value;
}
* @param string $value
public function setValue(string $value): void
$this->value = $value;
* @return Bookable
public function getBookable(): Bookable
return $this->bookable;
* @param Bookable $bookable
public function setBookable(Bookable $bookable): void
$this->bookable = $bookable;