src/Entity/CountryOfSale.php line 9
<?php
namespace App\Entity;
use App\Repository\CountryOfSaleRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CountryOfSaleRepository::class)]
class CountryOfSale
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Products::class, inversedBy: 'country')]
private $product;
#[ORM\Column(name: 'country', type: 'string')]
private $country;
#[ORM\Column(name: 'status', type: 'boolean', nullable: true)]
private $status;
/**
* @return mixed
*/
public function getProduct()
{
return $this->product;
}
/**
* @param mixed $product
*/
public function setProduct($product): void
{
$this->product = $product;
}
/**
* @return mixed
*/
public function getCountry()
{
return $this->country;
}
/**
* @param mixed $country
*/
public function setCountry($country): void
{
$this->country = $country;
}
/**
* @return mixed
*/
public function getStatus()
{
return $this->status;
}
/**
* @param mixed $status
*/
public function setStatus($status): void
{
$this->status = $status;
}
public function getId(): ?int
{
return $this->id;
}
public function __toString()
{
return $this->country;
}
}