src/Flexy/ShopBundle/Entity/Order/OrderItemNote.php line 11
<?php
namespace App\Flexy\ShopBundle\Entity\Order;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Flexy\ShopBundle\Repository\Order\OrderItemNoteRepository;
use Doctrine\ORM\Mapping as ORM;
#[ApiResource]
#[ORM\Entity(repositoryClass: OrderItemNoteRepository::class)]
class OrderItemNote implements \Stringable
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $content = null;
#[ORM\ManyToOne(targetEntity: OrderItem::class, inversedBy: 'orderItemNotes')]
private ?\App\Flexy\ShopBundle\Entity\Order\OrderItem $orderItem = null;
public function __toString(): string
{
return (string)$this->content;
}
public function getId(): ?int
{
return $this->id;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getOrderItem(): ?OrderItem
{
return $this->orderItem;
}
public function setOrderItem(?OrderItem $orderItem): self
{
$this->orderItem = $orderItem;
return $this;
}
}