src/Bidcoz/Bundle/CoreBundle/Entity/Auction/Shop.php line 15

Open in your IDE?
  1. <?php
  2. namespace Bidcoz\Bundle\CoreBundle\Entity\Auction;
  3. use Bidcoz\Bundle\CoreBundle\Entity\Campaign;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="AuctionRepository")
  8.  * @ORM\AssociationOverrides({
  9.  *      @ORM\AssociationOverride(name="campaign", inversedBy="shop")
  10.  * })
  11.  */
  12. class Shop extends Auction
  13. {
  14.     public function __construct(Campaign $campaign)
  15.     {
  16.         $this->campaign $campaign;
  17.         $campaign->setShop($this);
  18.         $this->itemCategories = new ArrayCollection();
  19.         $this->items          = new ArrayCollection();
  20.         $this->createdAt      = new \DateTime();
  21.         $this->bidIncrement   0;
  22.     }
  23.     public function setBidIncrement($bidIncrement)
  24.     {
  25.         $this->bidIncrement 0;
  26.     }
  27.     public function getBidIncrement()
  28.     {
  29.         return 0;
  30.     }
  31.     public function setOvertimeBidding($overtimeBidding)
  32.     {
  33.         $this->overtimeBidding Auction::OVERTIME_NONE;
  34.     }
  35.     public function getOvertimeBidding()
  36.     {
  37.         return Auction::OVERTIME_NONE;
  38.     }
  39.     public static function getOvertimeBiddingChoices()
  40.     {
  41.         return ['None' => self::OVERTIME_NONE];
  42.     }
  43.     public function getObjectName()
  44.     {
  45.         return 'Shop';
  46.     }
  47.     public function getTrackedParams()
  48.     {
  49.         return [];
  50.     }
  51.     public function getRoutePath(): string
  52.     {
  53.         return 'shop';
  54.     }
  55. }