src/AtechNet/CoreBundle/Entity/MarketplaceListingPriceLog.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\AtechNet\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping\Column;
  4. use Doctrine\ORM\Mapping\Entity;
  5. use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
  6. use Doctrine\ORM\Mapping\JoinColumn;
  7. use Doctrine\ORM\Mapping\ManyToOne;
  8. use Doctrine\ORM\Mapping\Table as Table;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. /**
  11.  * MarketplaceListingPriceLog
  12.  *
  13.  * @Table(name="marketplace_listing_price_log")
  14.  * @Entity
  15.  * @HasLifecycleCallbacks
  16.  */
  17. class MarketplaceListingPriceLog extends AbstractEntity
  18. {
  19.     /**
  20.      * @var ProductMarketplaceListing
  21.      *
  22.      * @Assert\NotNull
  23.      *
  24.      * @ManyToOne(targetEntity="ProductMarketplaceListing", inversedBy="priceLogEntries")
  25.      * @JoinColumn(name="marketplace_listing_id", referencedColumnName="id")
  26.      */
  27.     private $marketplaceListing;
  28.     /**
  29.      * @var User
  30.      *
  31.      * @ManyToOne(targetEntity="User")
  32.      * @JoinColumn(name="created_by", referencedColumnName="id")
  33.      */
  34.     private $createdBy;
  35.     /**
  36.      * @var float
  37.      *
  38.      * @Column(name="price", type="float", nullable=true)
  39.      */
  40.     private $price = null;
  41.     /**
  42.      * @var float
  43.      *
  44.      * @Column(name="min_price", type="float", nullable=true)
  45.      */
  46.     private $minPrice = null;
  47.     /**
  48.      * @var string|null
  49.      *
  50.      * @Column(name="country", type="string", nullable=true)
  51.      */
  52.     private $country = null;
  53.     /**
  54.      * @return ProductMarketplaceListing
  55.      */
  56.     public function getMarketplaceListing(): ProductMarketplaceListing
  57.     {
  58.         return $this->marketplaceListing;
  59.     }
  60.     /**
  61.      * @param ProductMarketplaceListing $marketplaceListing
  62.      */
  63.     public function setMarketplaceListing(ProductMarketplaceListing $marketplaceListing): void
  64.     {
  65.         $this->marketplaceListing = $marketplaceListing;
  66.     }
  67.     /**
  68.      * @return User
  69.      */
  70.     public function getCreatedBy(): User
  71.     {
  72.         return $this->createdBy;
  73.     }
  74.     /**
  75.      * @param User $createdBy
  76.      */
  77.     public function setCreatedBy(User $createdBy): void
  78.     {
  79.         $this->createdBy = $createdBy;
  80.     }
  81.     /**
  82.      * @return float|null
  83.      */
  84.     public function getPrice(): ?float
  85.     {
  86.         return $this->price;
  87.     }
  88.     /**
  89.      * @param float $price
  90.      */
  91.     public function setPrice(float $price): void
  92.     {
  93.         $this->price = $price;
  94.     }
  95.     /**
  96.      * @return float|null
  97.      */
  98.     public function getMinPrice(): ?float
  99.     {
  100.         return $this->minPrice;
  101.     }
  102.     /**
  103.      * @param float $minPrice
  104.      */
  105.     public function setMinPrice(float $minPrice): void
  106.     {
  107.         $this->minPrice = $minPrice;
  108.     }
  109.     /**
  110.      * @return string|null
  111.      */
  112.     public function getCountry(): ?float
  113.     {
  114.         return $this->country;
  115.     }
  116.     /**
  117.      * @param string $country
  118.      */
  119.     public function setCountry(string $country): void
  120.     {
  121.         $this->country = $country;
  122.     }
  123. }