<?php
namespace App\Entity;
use App\Repository\ProductRepository;
use Boab\CmsBundle\Entity\Content;
use Boab\EcommerceBundle\Entity\ProductLineInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProductRepository::class)
*/
class Product extends Content implements ProductInterface, ProductLineInterface
{
/**
* @ORM\Column(type="decimal", precision=10, scale=0)
*/
private $price;
public function getId(): ?int
{
return $this->id;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(string $price): self
{
$this->price = $price;
return $this;
}
}