<?php
namespace App\Entity;
use App\Repository\ServicePriceRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ServicePriceRepository::class)
*/
class ServicePrice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=CompagnyInfo::class, inversedBy="servicePrices")
*/
private $compagny;
/**
* @ORM\Column(type="decimal", precision=10, scale=0)
*/
private $price;
/**
* @ORM\Column(type="text")
*/
private $serviceDescribe;
public function getId(): ?int
{
return $this->id;
}
public function getCompagny(): ?CompagnyInfo
{
return $this->compagny;
}
public function setCompagny(?CompagnyInfo $compagny): self
{
$this->compagny = $compagny;
return $this;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(string $price): self
{
$this->price = $price;
return $this;
}
public function getServiceDescribe(): ?string
{
return $this->serviceDescribe;
}
public function setServiceDescribe(string $serviceDescribe): self
{
$this->serviceDescribe = $serviceDescribe;
return $this;
}
}