<?php
namespace App\Entity;
use App\Repository\ConfigurationRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ConfigurationRepository::class)
*/
class Configuration
{
const FIELD_EMAIL_REMINDER_ONE = 'email_reminder_one';
const FIELD_EMAIL_REMINDER_TWO = 'email_reminder_two';
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50)
*/
private $field;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $value;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="configurations")
*/
private $company;
public function __toString(): string
{
return $this->field;
}
public function getId(): ?int
{
return $this->id;
}
public function getField(): ?string
{
return $this->field;
}
public function setField(string $field): self
{
$this->field = $field;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): self
{
$this->value = $value;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
}