Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use App\Entity\Ticket;
- use Doctrine\ORM\Mapping as ORM;
- use Lc\ShopBundle\Context\TicketInterface;
- use Gedmo\Mapping\Annotation as Gedmo;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class TicketMessage extends AbstractEntity
- {
- use StatusTrait;
-
- /**
- * @Gedmo\Blameable(on="create")
- * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface")
- * @ORM\JoinColumn(nullable=true)
- */
- protected $createdBy;
-
- /**
- * @Gedmo\Blameable(on="update")
- * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface")
- * @ORM\JoinColumn(nullable=true)
- */
- protected $updatedBy;
-
- /**
- * @ORM\Column(type="text")
- */
- protected $message;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\TicketInterface", inversedBy="ticketMessages")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $ticket;
-
- public function getMessage(): ?string
- {
- return $this->message;
- }
-
- public function setMessage(string $message): self
- {
- $this->message = $message;
-
- return $this;
- }
-
- public function getTicket(): ?TicketInterface
- {
- return $this->ticket;
- }
-
- public function setTicket(?TicketInterface $ticket): self
- {
- $this->ticket = $ticket;
-
- return $this;
- }
- }
|