<?phpnamespace App\AtechNet\CoreBundle\Entity;use Doctrine\ORM\Mapping\Column;use Doctrine\ORM\Mapping\Entity;use Doctrine\ORM\Mapping\HasLifecycleCallbacks;use Doctrine\ORM\Mapping\JoinColumn;use Doctrine\ORM\Mapping\ManyToOne;use Doctrine\ORM\Mapping\Table as Table;use Symfony\Component\Validator\Constraints as Assert;/** * MarketplaceListingPriceLog * * @Table(name="marketplace_listing_price_log") * @Entity * @HasLifecycleCallbacks */class MarketplaceListingPriceLog extends AbstractEntity{ /** * @var ProductMarketplaceListing * * @Assert\NotNull * * @ManyToOne(targetEntity="ProductMarketplaceListing", inversedBy="priceLogEntries") * @JoinColumn(name="marketplace_listing_id", referencedColumnName="id") */ private $marketplaceListing; /** * @var User * * @ManyToOne(targetEntity="User") * @JoinColumn(name="created_by", referencedColumnName="id") */ private $createdBy; /** * @var float * * @Column(name="price", type="float", nullable=true) */ private $price = null; /** * @var float * * @Column(name="min_price", type="float", nullable=true) */ private $minPrice = null; /** * @var string|null * * @Column(name="country", type="string", nullable=true) */ private $country = null; /** * @return ProductMarketplaceListing */ public function getMarketplaceListing(): ProductMarketplaceListing { return $this->marketplaceListing; } /** * @param ProductMarketplaceListing $marketplaceListing */ public function setMarketplaceListing(ProductMarketplaceListing $marketplaceListing): void { $this->marketplaceListing = $marketplaceListing; } /** * @return User */ public function getCreatedBy(): User { return $this->createdBy; } /** * @param User $createdBy */ public function setCreatedBy(User $createdBy): void { $this->createdBy = $createdBy; } /** * @return float|null */ public function getPrice(): ?float { return $this->price; } /** * @param float $price */ public function setPrice(float $price): void { $this->price = $price; } /** * @return float|null */ public function getMinPrice(): ?float { return $this->minPrice; } /** * @param float $minPrice */ public function setMinPrice(float $minPrice): void { $this->minPrice = $minPrice; } /** * @return string|null */ public function getCountry(): ?float { return $this->country; } /** * @param string $country */ public function setCountry(string $country): void { $this->country = $country; }}