ソースを参照

Gestion de deliveryInfos au niveau de l'adresse

master
Guillaume 4年前
コミット
6625813e24
2個のファイルの変更21行の追加5行の削除
  1. +16
    -0
      ShopBundle/Model/Address.php
  2. +5
    -5
      ShopBundle/Model/OrderShop.php

+ 16
- 0
ShopBundle/Model/Address.php ファイルの表示

@@ -95,6 +95,10 @@ abstract class Address extends AbstractEntity
*/
protected $merchant;

/**
* @ORM\Column(type="text", nullable=true)
*/
protected $deliveryInfos;

public function __toString()
{
@@ -347,4 +351,16 @@ abstract class Address extends AbstractEntity

return $this;
}

public function getDeliveryInfos(): ?string
{
return $this->deliveryInfos;
}

public function setDeliveryInfos(?string $deliveryInfos): self
{
$this->deliveryInfos = $deliveryInfos;

return $this;
}
}

+ 5
- 5
ShopBundle/Model/OrderShop.php ファイルの表示

@@ -83,7 +83,7 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $infosDelivery;
protected $deliveryInfos;

public function __construct()
{
@@ -329,14 +329,14 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa
return $this;
}

public function getInfosDelivery(): ?string
public function getDeliveryInfos(): ?string
{
return $this->infosDelivery;
return $this->deliveryInfos;
}

public function setInfosDelivery(?string $infosDelivery): self
public function setDeliveryInfos(?string $deliveryInfos): self
{
$this->infosDelivery = $infosDelivery;
$this->deliveryInfos = $deliveryInfos;

return $this;
}

読み込み中…
キャンセル
保存