app/proxy/entity/src/Eccube/Entity/Shipping.php line 30

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Eccube\Service\Calculator\OrderItemCollection;
  15. use Eccube\Service\PurchaseFlow\ItemCollection;
  16.     /**
  17.      * Shipping
  18.      *
  19.      * @ORM\Table(name="dtb_shipping")
  20.      * @ORM\InheritanceType("SINGLE_TABLE")
  21.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  22.      * @ORM\HasLifecycleCallbacks()
  23.      * @ORM\Entity(repositoryClass="Eccube\Repository\ShippingRepository")
  24.      */
  25.     class Shipping extends \Eccube\Entity\AbstractEntity
  26.     {
  27.         use NameTrait\Plugin\Noshidelivery\Entity\ShippingTrait;
  28.         /**
  29.          * 出荷メール未送信
  30.          */
  31.         public const SHIPPING_MAIL_UNSENT 1;
  32.         /**
  33.          * 出荷メール送信済
  34.          */
  35.         public const SHIPPING_MAIL_SENT 2;
  36.         public function getShippingMultipleDefaultName()
  37.         {
  38.             return $this->getName01().' '.$this->getPref()->getName().' '.$this->getAddr01().' '.$this->getAddr02();
  39.         }
  40.         /**
  41.          * @var int
  42.          *
  43.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  44.          * @ORM\Id
  45.          * @ORM\GeneratedValue(strategy="IDENTITY")
  46.          */
  47.         private $id;
  48.         /**
  49.          * @var string
  50.          *
  51.          * @ORM\Column(name="name01", type="string", length=255)
  52.          */
  53.         private $name01;
  54.         /**
  55.          * @var string
  56.          *
  57.          * @ORM\Column(name="name02", type="string", length=255)
  58.          */
  59.         private $name02;
  60.         /**
  61.          * @var string
  62.          *
  63.          * @ORM\Column(name="kana01", type="string", length=255, nullable=true)
  64.          */
  65.         private $kana01;
  66.         /**
  67.          * @var string
  68.          *
  69.          * @ORM\Column(name="kana02", type="string", length=255, nullable=true)
  70.          */
  71.         private $kana02;
  72.         /**
  73.          * @var string|null
  74.          *
  75.          * @ORM\Column(name="company_name", type="string", length=255, nullable=true)
  76.          */
  77.         private $company_name;
  78.         /**
  79.          * @var string|null
  80.          *
  81.          * @ORM\Column(name="phone_number", type="string", length=14, nullable=true)
  82.          */
  83.         private $phone_number;
  84.         /**
  85.          * @var string|null
  86.          *
  87.          * @ORM\Column(name="postal_code", type="string", length=8, nullable=true)
  88.          */
  89.         private $postal_code;
  90.         /**
  91.          * @var string|null
  92.          *
  93.          * @ORM\Column(name="addr01", type="string", length=255, nullable=true)
  94.          */
  95.         private $addr01;
  96.         /**
  97.          * @var string|null
  98.          *
  99.          * @ORM\Column(name="addr02", type="string", length=255, nullable=true)
  100.          */
  101.         private $addr02;
  102.         /**
  103.          * @var string|null
  104.          *
  105.          * @ORM\Column(name="delivery_name", type="string", length=255, nullable=true)
  106.          */
  107.         private $shipping_delivery_name;
  108.         /**
  109.          * @var int
  110.          *
  111.          * @ORM\Column(name="time_id", type="integer", options={"unsigned":true}, nullable=true)
  112.          */
  113.         private $time_id;
  114.         /**
  115.          * @var string|null
  116.          *
  117.          * @ORM\Column(name="delivery_time", type="string", length=255, nullable=true)
  118.          */
  119.         private $shipping_delivery_time;
  120.         /**
  121.          * お届け予定日/お届け希望日
  122.          *
  123.          * @var \DateTime|null
  124.          *
  125.          * @ORM\Column(name="delivery_date", type="datetimetz", nullable=true)
  126.          */
  127.         private $shipping_delivery_date;
  128.         /**
  129.          * 出荷日
  130.          *
  131.          * @var \DateTime|null
  132.          *
  133.          * @ORM\Column(name="shipping_date", type="datetimetz", nullable=true)
  134.          */
  135.         private $shipping_date;
  136.         /**
  137.          * @var string
  138.          *
  139.          * @ORM\Column(name="tracking_number", type="string", length=255, nullable=true)
  140.          */
  141.         private $tracking_number;
  142.         /**
  143.          * @var string
  144.          *
  145.          * @ORM\Column(name="note", type="string", length=4000, nullable=true)
  146.          */
  147.         private $note;
  148.         /**
  149.          * @var int|null
  150.          *
  151.          * @ORM\Column(name="sort_no", type="smallint", nullable=true, options={"unsigned":true})
  152.          */
  153.         private $sort_no;
  154.         /**
  155.          * @var \DateTime
  156.          *
  157.          * @ORM\Column(name="create_date", type="datetimetz")
  158.          */
  159.         private $create_date;
  160.         /**
  161.          * @var \DateTime
  162.          *
  163.          * @ORM\Column(name="update_date", type="datetimetz")
  164.          */
  165.         private $update_date;
  166.         /**
  167.          * @var \DateTime
  168.          *
  169.          * @ORM\Column(name="mail_send_date", type="datetimetz", nullable=true)
  170.          */
  171.         private $mail_send_date;
  172.         /**
  173.          * @var \Eccube\Entity\Order
  174.          *
  175.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Order", inversedBy="Shippings", cascade={"persist"})
  176.          * @ORM\JoinColumns({
  177.          *   @ORM\JoinColumn(name="order_id", referencedColumnName="id")
  178.          * })
  179.          */
  180.         private $Order;
  181.         /**
  182.          * @var \Doctrine\Common\Collections\Collection
  183.          *
  184.          * @ORM\OneToMany(targetEntity="Eccube\Entity\OrderItem", mappedBy="Shipping", cascade={"persist"})
  185.          */
  186.         private $OrderItems;
  187.         /**
  188.          * @var \Eccube\Entity\Master\Country
  189.          *
  190.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country")
  191.          * @ORM\JoinColumns({
  192.          *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
  193.          * })
  194.          */
  195.         private $Country;
  196.         /**
  197.          * @var \Eccube\Entity\Master\Pref
  198.          *
  199.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref")
  200.          * @ORM\JoinColumns({
  201.          *   @ORM\JoinColumn(name="pref_id", referencedColumnName="id")
  202.          * })
  203.          */
  204.         private $Pref;
  205.         /**
  206.          * @var \Eccube\Entity\Delivery
  207.          *
  208.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Delivery")
  209.          * @ORM\JoinColumns({
  210.          *   @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
  211.          * })
  212.          */
  213.         private $Delivery;
  214.         /**
  215.          * @var \Eccube\Entity\ProductClass
  216.          */
  217.         private $ProductClassOfTemp;
  218.         /**
  219.          * @var \Eccube\Entity\Member
  220.          *
  221.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
  222.          * @ORM\JoinColumns({
  223.          *   @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
  224.          * })
  225.          */
  226.         private $Creator;
  227.         /**
  228.          * Constructor
  229.          */
  230.         public function __construct()
  231.         {
  232.             $this->OrderItems = new \Doctrine\Common\Collections\ArrayCollection();
  233.         }
  234.         /**
  235.          * CustomerAddress から個人情報を設定.
  236.          *
  237.          * @param \Eccube\Entity\CustomerAddress $CustomerAddress
  238.          *
  239.          * @return \Eccube\Entity\Shipping
  240.          */
  241.         public function setFromCustomerAddress(CustomerAddress $CustomerAddress)
  242.         {
  243.             $this
  244.             ->setName01($CustomerAddress->getName01())
  245.             ->setName02($CustomerAddress->getName02())
  246.             ->setKana01($CustomerAddress->getKana01())
  247.             ->setKana02($CustomerAddress->getKana02())
  248.             ->setCompanyName($CustomerAddress->getCompanyName())
  249.             ->setPhoneNumber($CustomerAddress->getPhonenumber())
  250.             ->setPostalCode($CustomerAddress->getPostalCode())
  251.             ->setPref($CustomerAddress->getPref())
  252.             ->setAddr01($CustomerAddress->getAddr01())
  253.             ->setAddr02($CustomerAddress->getAddr02());
  254.             return $this;
  255.         }
  256.         /**
  257.          * 個人情報をクリア.
  258.          *
  259.          * @return \Eccube\Entity\Shipping
  260.          */
  261.         public function clearCustomerAddress()
  262.         {
  263.             $this
  264.             ->setName01(null)
  265.             ->setName02(null)
  266.             ->setKana01(null)
  267.             ->setKana02(null)
  268.             ->setCompanyName(null)
  269.             ->setPhoneNumber(null)
  270.             ->setPostalCode(null)
  271.             ->setPref(null)
  272.             ->setAddr01(null)
  273.             ->setAddr02(null);
  274.             return $this;
  275.         }
  276.         /**
  277.          * Get id.
  278.          *
  279.          * @return int
  280.          */
  281.         public function getId()
  282.         {
  283.             return $this->id;
  284.         }
  285.         /**
  286.          * Set name01.
  287.          *
  288.          * @param string $name01
  289.          *
  290.          * @return Shipping
  291.          */
  292.         public function setName01($name01)
  293.         {
  294.             $this->name01 $name01;
  295.             return $this;
  296.         }
  297.         /**
  298.          * Get name01.
  299.          *
  300.          * @return string
  301.          */
  302.         public function getName01()
  303.         {
  304.             return $this->name01;
  305.         }
  306.         /**
  307.          * Set name02.
  308.          *
  309.          * @param string $name02
  310.          *
  311.          * @return Shipping
  312.          */
  313.         public function setName02($name02)
  314.         {
  315.             $this->name02 $name02;
  316.             return $this;
  317.         }
  318.         /**
  319.          * Get name02.
  320.          *
  321.          * @return string
  322.          */
  323.         public function getName02()
  324.         {
  325.             return $this->name02;
  326.         }
  327.         /**
  328.          * Set kana01.
  329.          *
  330.          * @param string $kana01
  331.          *
  332.          * @return Shipping
  333.          */
  334.         public function setKana01($kana01)
  335.         {
  336.             $this->kana01 $kana01;
  337.             return $this;
  338.         }
  339.         /**
  340.          * Get kana01.
  341.          *
  342.          * @return string
  343.          */
  344.         public function getKana01()
  345.         {
  346.             return $this->kana01;
  347.         }
  348.         /**
  349.          * Set kana02.
  350.          *
  351.          * @param string $kana02
  352.          *
  353.          * @return Shipping
  354.          */
  355.         public function setKana02($kana02)
  356.         {
  357.             $this->kana02 $kana02;
  358.             return $this;
  359.         }
  360.         /**
  361.          * Get kana02.
  362.          *
  363.          * @return string
  364.          */
  365.         public function getKana02()
  366.         {
  367.             return $this->kana02;
  368.         }
  369.         /**
  370.          * Set companyName.
  371.          *
  372.          * @param string|null $companyName
  373.          *
  374.          * @return Shipping
  375.          */
  376.         public function setCompanyName($companyName null)
  377.         {
  378.             $this->company_name $companyName;
  379.             return $this;
  380.         }
  381.         /**
  382.          * Get companyName.
  383.          *
  384.          * @return string|null
  385.          */
  386.         public function getCompanyName()
  387.         {
  388.             return $this->company_name;
  389.         }
  390.         /**
  391.          * Set phone_number.
  392.          *
  393.          * @param string|null $phone_number
  394.          *
  395.          * @return Shipping
  396.          */
  397.         public function setPhoneNumber($phone_number null)
  398.         {
  399.             $this->phone_number $phone_number;
  400.             return $this;
  401.         }
  402.         /**
  403.          * Get phone_number.
  404.          *
  405.          * @return string|null
  406.          */
  407.         public function getPhoneNumber()
  408.         {
  409.             return $this->phone_number;
  410.         }
  411.         /**
  412.          * Set postal_code.
  413.          *
  414.          * @param string|null $postal_code
  415.          *
  416.          * @return Shipping
  417.          */
  418.         public function setPostalCode($postal_code null)
  419.         {
  420.             $this->postal_code $postal_code;
  421.             return $this;
  422.         }
  423.         /**
  424.          * Get postal_code.
  425.          *
  426.          * @return string|null
  427.          */
  428.         public function getPostalCode()
  429.         {
  430.             return $this->postal_code;
  431.         }
  432.         /**
  433.          * Set addr01.
  434.          *
  435.          * @param string|null $addr01
  436.          *
  437.          * @return Shipping
  438.          */
  439.         public function setAddr01($addr01 null)
  440.         {
  441.             $this->addr01 $addr01;
  442.             return $this;
  443.         }
  444.         /**
  445.          * Get addr01.
  446.          *
  447.          * @return string|null
  448.          */
  449.         public function getAddr01()
  450.         {
  451.             return $this->addr01;
  452.         }
  453.         /**
  454.          * Set addr02.
  455.          *
  456.          * @param string|null $addr02
  457.          *
  458.          * @return Shipping
  459.          */
  460.         public function setAddr02($addr02 null)
  461.         {
  462.             $this->addr02 $addr02;
  463.             return $this;
  464.         }
  465.         /**
  466.          * Get addr02.
  467.          *
  468.          * @return string|null
  469.          */
  470.         public function getAddr02()
  471.         {
  472.             return $this->addr02;
  473.         }
  474.         /**
  475.          * Set shippingDeliveryName.
  476.          *
  477.          * @param string|null $shippingDeliveryName
  478.          *
  479.          * @return Shipping
  480.          */
  481.         public function setShippingDeliveryName($shippingDeliveryName null)
  482.         {
  483.             $this->shipping_delivery_name $shippingDeliveryName;
  484.             return $this;
  485.         }
  486.         /**
  487.          * Get shippingDeliveryName.
  488.          *
  489.          * @return string|null
  490.          */
  491.         public function getShippingDeliveryName()
  492.         {
  493.             return $this->shipping_delivery_name;
  494.         }
  495.         /**
  496.          * Set shippingDeliveryTime.
  497.          *
  498.          * @param string|null $shippingDeliveryTime
  499.          *
  500.          * @return Shipping
  501.          */
  502.         public function setShippingDeliveryTime($shippingDeliveryTime null)
  503.         {
  504.             $this->shipping_delivery_time $shippingDeliveryTime;
  505.             return $this;
  506.         }
  507.         /**
  508.          * Get shippingDeliveryTime.
  509.          *
  510.          * @return string|null
  511.          */
  512.         public function getShippingDeliveryTime()
  513.         {
  514.             return $this->shipping_delivery_time;
  515.         }
  516.         /**
  517.          * Set shippingDeliveryDate.
  518.          *
  519.          * @param \DateTime|null $shippingDeliveryDate
  520.          *
  521.          * @return Shipping
  522.          */
  523.         public function setShippingDeliveryDate($shippingDeliveryDate null)
  524.         {
  525.             $this->shipping_delivery_date $shippingDeliveryDate;
  526.             return $this;
  527.         }
  528.         /**
  529.          * Get shippingDeliveryDate.
  530.          *
  531.          * @return \DateTime|null
  532.          */
  533.         public function getShippingDeliveryDate()
  534.         {
  535.             return $this->shipping_delivery_date;
  536.         }
  537.         /**
  538.          * Set shippingDate.
  539.          *
  540.          * @param \DateTime|null $shippingDate
  541.          *
  542.          * @return Shipping
  543.          */
  544.         public function setShippingDate($shippingDate null)
  545.         {
  546.             $this->shipping_date $shippingDate;
  547.             return $this;
  548.         }
  549.         /**
  550.          * Get shippingDate.
  551.          *
  552.          * @return \DateTime|null
  553.          */
  554.         public function getShippingDate()
  555.         {
  556.             return $this->shipping_date;
  557.         }
  558.         /**
  559.          * Set sortNo.
  560.          *
  561.          * @param int|null $sortNo
  562.          *
  563.          * @return Shipping
  564.          */
  565.         public function setSortNo($sortNo null)
  566.         {
  567.             $this->sort_no $sortNo;
  568.             return $this;
  569.         }
  570.         /**
  571.          * Get sortNo.
  572.          *
  573.          * @return int|null
  574.          */
  575.         public function getSortNo()
  576.         {
  577.             return $this->sort_no;
  578.         }
  579.         /**
  580.          * Set createDate.
  581.          *
  582.          * @param \DateTime $createDate
  583.          *
  584.          * @return Shipping
  585.          */
  586.         public function setCreateDate($createDate)
  587.         {
  588.             $this->create_date $createDate;
  589.             return $this;
  590.         }
  591.         /**
  592.          * Get createDate.
  593.          *
  594.          * @return \DateTime
  595.          */
  596.         public function getCreateDate()
  597.         {
  598.             return $this->create_date;
  599.         }
  600.         /**
  601.          * Set updateDate.
  602.          *
  603.          * @param \DateTime $updateDate
  604.          *
  605.          * @return Shipping
  606.          */
  607.         public function setUpdateDate($updateDate)
  608.         {
  609.             $this->update_date $updateDate;
  610.             return $this;
  611.         }
  612.         /**
  613.          * Get updateDate.
  614.          *
  615.          * @return \DateTime
  616.          */
  617.         public function getUpdateDate()
  618.         {
  619.             return $this->update_date;
  620.         }
  621.         /**
  622.          * Set mailSendDate.
  623.          *
  624.          * @param \DateTime $mailSendDate
  625.          *
  626.          * @return Shipping
  627.          */
  628.         public function setMailSendDate($mailSendDate)
  629.         {
  630.             $this->mail_send_date $mailSendDate;
  631.             return $this;
  632.         }
  633.         /**
  634.          * Get mailSendDate.
  635.          *
  636.          * @return \DateTime
  637.          */
  638.         public function getMailSendDate()
  639.         {
  640.             return $this->mail_send_date;
  641.         }
  642.         /**
  643.          * Add orderItem.
  644.          *
  645.          * @param \Eccube\Entity\OrderItem $OrderItem
  646.          *
  647.          * @return Shipping
  648.          */
  649.         public function addOrderItem(OrderItem $OrderItem)
  650.         {
  651.             $this->OrderItems[] = $OrderItem;
  652.             return $this;
  653.         }
  654.         /**
  655.          * Remove orderItem.
  656.          *
  657.          * @param \Eccube\Entity\OrderItem $OrderItem
  658.          *
  659.          * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  660.          */
  661.         public function removeOrderItem(OrderItem $OrderItem)
  662.         {
  663.             return $this->OrderItems->removeElement($OrderItem);
  664.         }
  665.         /**
  666.          * Get orderItems.
  667.          *
  668.          * @return \Doctrine\Common\Collections\Collection
  669.          */
  670.         public function getOrderItems()
  671.         {
  672.             return (new ItemCollection($this->OrderItems))->sort();
  673.         }
  674.         /**
  675.          * 商品の受注明細を取得
  676.          *
  677.          * @return OrderItem[]
  678.          */
  679.         public function getProductOrderItems()
  680.         {
  681.             $sio = new OrderItemCollection($this->OrderItems->toArray());
  682.             return $sio->getProductClasses()->toArray();
  683.         }
  684.         /**
  685.          * Set country.
  686.          *
  687.          * @param \Eccube\Entity\Master\Country|null $country
  688.          *
  689.          * @return Shipping
  690.          */
  691.         public function setCountry(Master\Country $country null)
  692.         {
  693.             $this->Country $country;
  694.             return $this;
  695.         }
  696.         /**
  697.          * Get country.
  698.          *
  699.          * @return \Eccube\Entity\Master\Country|null
  700.          */
  701.         public function getCountry()
  702.         {
  703.             return $this->Country;
  704.         }
  705.         /**
  706.          * Set pref.
  707.          *
  708.          * @param \Eccube\Entity\Master\Pref|null $pref
  709.          *
  710.          * @return Shipping
  711.          */
  712.         public function setPref(Master\Pref $pref null)
  713.         {
  714.             $this->Pref $pref;
  715.             return $this;
  716.         }
  717.         /**
  718.          * Get pref.
  719.          *
  720.          * @return \Eccube\Entity\Master\Pref|null
  721.          */
  722.         public function getPref()
  723.         {
  724.             return $this->Pref;
  725.         }
  726.         /**
  727.          * Set delivery.
  728.          *
  729.          * @param \Eccube\Entity\Delivery|null $delivery
  730.          *
  731.          * @return Shipping
  732.          */
  733.         public function setDelivery(Delivery $delivery null)
  734.         {
  735.             $this->Delivery $delivery;
  736.             return $this;
  737.         }
  738.         /**
  739.          * Get delivery.
  740.          *
  741.          * @return \Eccube\Entity\Delivery|null
  742.          */
  743.         public function getDelivery()
  744.         {
  745.             return $this->Delivery;
  746.         }
  747.         /**
  748.          * Product class of shipment item (temp)
  749.          *
  750.          * @return \Eccube\Entity\ProductClass
  751.          */
  752.         public function getProductClassOfTemp()
  753.         {
  754.             return $this->ProductClassOfTemp;
  755.         }
  756.         /**
  757.          * Product class of shipment item (temp)
  758.          *
  759.          * @param \Eccube\Entity\ProductClass $ProductClassOfTemp
  760.          *
  761.          * @return $this
  762.          */
  763.         public function setProductClassOfTemp(ProductClass $ProductClassOfTemp)
  764.         {
  765.             $this->ProductClassOfTemp $ProductClassOfTemp;
  766.             return $this;
  767.         }
  768.         /**
  769.          * Set order.
  770.          *
  771.          * @param Order $Order
  772.          *
  773.          * @return $this
  774.          */
  775.         public function setOrder(Order $Order)
  776.         {
  777.             $this->Order $Order;
  778.             return $this;
  779.         }
  780.         /**
  781.          * Get order.
  782.          *
  783.          * @return Order
  784.          */
  785.         public function getOrder()
  786.         {
  787.             return $this->Order;
  788.         }
  789.         /**
  790.          * Set trackingNumber
  791.          *
  792.          * @param string $trackingNumber
  793.          *
  794.          * @return Shipping
  795.          */
  796.         public function setTrackingNumber($trackingNumber)
  797.         {
  798.             $this->tracking_number $trackingNumber;
  799.             return $this;
  800.         }
  801.         /**
  802.          * Get trackingNumber
  803.          *
  804.          * @return string
  805.          */
  806.         public function getTrackingNumber()
  807.         {
  808.             return $this->tracking_number;
  809.         }
  810.         /**
  811.          * Set note.
  812.          *
  813.          * @param string|null $note
  814.          *
  815.          * @return Shipping
  816.          */
  817.         public function setNote($note null)
  818.         {
  819.             $this->note $note;
  820.             return $this;
  821.         }
  822.         /**
  823.          * Get note.
  824.          *
  825.          * @return string|null
  826.          */
  827.         public function getNote()
  828.         {
  829.             return $this->note;
  830.         }
  831.         /**
  832.          * 出荷済みの場合はtrue, 未出荷の場合はfalseを返す
  833.          *
  834.          * @return boolean
  835.          */
  836.         public function isShipped()
  837.         {
  838.             return !is_null($this->shipping_date);
  839.         }
  840.         /**
  841.          * Set timeId
  842.          *
  843.          * @param integer $timeId
  844.          *
  845.          * @return Shipping
  846.          */
  847.         public function setTimeId($timeId)
  848.         {
  849.             $this->time_id $timeId;
  850.             return $this;
  851.         }
  852.         /**
  853.          * Get timeId
  854.          *
  855.          * @return integer
  856.          */
  857.         public function getTimeId()
  858.         {
  859.             return $this->time_id;
  860.         }
  861.         /**
  862.          * Set creator.
  863.          *
  864.          * @param \Eccube\Entity\Member|null $creator
  865.          *
  866.          * @return Shipping
  867.          */
  868.         public function setCreator(Member $creator null)
  869.         {
  870.             $this->Creator $creator;
  871.             return $this;
  872.         }
  873.         /**
  874.          * Get creator.
  875.          *
  876.          * @return \Eccube\Entity\Member|null
  877.          */
  878.         public function getCreator()
  879.         {
  880.             return $this->Creator;
  881.         }
  882.     }