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