<?php
namespace App\Entity;
use App\Repository\RecurrenceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\RecurrenceProductRepository;
/**
* @ORM\Entity(repositoryClass=RecurrenceProductRepository::class)
*/
class RecurrenceProduct
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="recurrenceProducts")
*/
private $product;
/**
* @ORM\ManyToOne(targetEntity=Recurrence::class, inversedBy="recurrenceProducts")
*/
private $recurrence;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $frequency;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getRecurrence()
{
return $this->recurrence;
}
/**
* @param mixed $recurrence
*/
public function setRecurrence($recurrence): void
{
$this->recurrence = $recurrence;
}
/**
* @return mixed
*/
public function getProduct()
{
return $this->product;
}
/**
* @param mixed $product
*/
public function setProduct($product): void
{
$this->product = $product;
}
/**
* @return mixed
*/
public function getFrequency()
{
return $this->frequency;
}
/**
* @param mixed $frequency
*/
public function setFrequency($frequency): void
{
$this->frequency = $frequency;
}
}