Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- <?php
-
- namespace Lc\CaracoleBundle\Doctrine\Extension;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
-
- /**
- * @ORM\MappedSuperclass()
- */
- trait OrderPayoffTrait
- {
-
- use PayoffTrait;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Order\OrderShopInterface", inversedBy="orderPayments")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $orderShop;
-
- /**
- * @ORM\Column(type="boolean")
- */
- protected $editable;
-
- public function __toString()
- {
- return $this->amount . ' le ' . $this->getPaidAt()->format('d-m-y') . ' par ' . $this->getMeanPayment();
- }
-
- public function getOrderShop(): ?OrderShopInterface
- {
- return $this->orderShop;
- }
-
- public function setOrderShop(?OrderShopInterface $orderShop): self
- {
- $this->orderShop = $orderShop;
-
- return $this;
- }
-
- public function setEditable(bool $editable): self
- {
- $this->editable = $editable;
-
- return $this;
- }
-
- public function getEditable(): ?bool
- {
- return $this->editable;
- }
-
- public function isEditable(): ?bool
- {
- return $this->editable;
- }
- }
|