<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\RawMaterialRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ApiResource(
collectionOperations: [
'get',
],
itemOperations: [
'get'
],
order: ['name' => 'ASC'],
paginationEnabled: false,
)]
#[ORM\Entity(repositoryClass: RawMaterialRepository::class)]
class RawMaterial extends BaseEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
protected int $id;
#[ORM\Column(type: 'string', length: 25)]
protected string $code;
#[ORM\Column(type: 'string', length: 255)]
protected string $name;
#[ORM\Column(type: 'string', length: 255)]
protected string $publicName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
protected ?string $allergens = null;
#[ORM\Column(type: 'decimal', precision: 12, scale: 5)]
protected string $price = "0";
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $humidity = "0";
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $grease = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $saturatedFattyAcids = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $monosaturatedFattyAcids = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $polyunsaturatedFats = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $salatrim = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $carbohydrates = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $sugars = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $polyalcohols = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $alcohol = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $organicAcids = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $starches = null; #[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $erythritol = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $fiber = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $proteins = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $mineralSalts = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $salt = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $sodium = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $lostVolatilization = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminA = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB1 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB2 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB3 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB5 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB6 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB9 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminB12 = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminC = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminD = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminE = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminH = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $vitaminK = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $calcium = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $iron = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $magnesium = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $matchElement = null; #[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $potassium = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $chlorine = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $zinc = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $copper = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $manganese = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $fluorine = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $selenium = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $chromium = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $molybdenum = null;
#[ORM\Column(type: 'decimal', precision: 10, scale: 4, nullable: true)]
protected ?string $iodine = null;
public function fromArray(array $dataArray): void
{
$this->initializeFromArray($this, $dataArray);
}
public function getId(): ?int{return $this->id;}
public function getCode(): ?string{return $this->code;}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getName(): ?string{return $this->name;}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getPublicName(): ?string{return $this->publicName;}
public function setPublicName(string $publicName): self
{
$this->publicName = $publicName;
return $this;
}
public function getAllergens(): ?string{return $this->allergens;}
public function setAllergens(?string $allergens): self
{
$this->allergens = $allergens;
return $this;
}
public function getPrice(): ?string{return $this->price;}
public function setPrice(string $price): self
{
$this->price = $price;
return $this;
}
public function getHumidity(): ?string{return $this->humidity;}
public function setHumidity(string $humidity): self
{
$this->humidity = $humidity;
return $this;
}
public function getGrease(): ?string{return $this->grease;}
public function setGrease(?string $grease): self
{
$this->grease = $grease;
return $this;
}
public function getSaturatedFattyAcids(): ?string{return $this->saturatedFattyAcids;}
public function setSaturatedFattyAcids(?string $saturatedFattyAcids): self
{
$this->saturatedFattyAcids = $saturatedFattyAcids;
return $this;
}
public function getMonosaturatedFattyAcids(): ?string{return $this->monosaturatedFattyAcids;}
public function setMonosaturatedFattyAcids(?string $monosaturatedFattyAcids): self
{
$this->monosaturatedFattyAcids = $monosaturatedFattyAcids;
return $this;
}
public function getPolyunsaturatedFats(): ?string{return $this->polyunsaturatedFats;}
public function setPolyunsaturatedFats(?string $polyunsaturatedFats): self
{
$this->polyunsaturatedFats = $polyunsaturatedFats;
return $this;
}
public function getSugars(): ?string{return $this->sugars;}
public function setSugars(?string $sugars): self
{
$this->sugars = $sugars;
return $this;
}
public function getPolyalcohols(): ?string{return $this->polyalcohols;}
public function setPolyalcohols(?string $polyalcohols): self
{
$this->polyalcohols = $polyalcohols;
return $this;
}
public function getStarches(): ?string
{
return $this->starches;
}
public function setStarches(?string $starches): self
{
$this->starches = $starches;
return $this;
}
public function getFiber(): ?string
{
return $this->fiber;
}
public function setFiber(?string $fiber): self
{
$this->fiber = $fiber;
return $this;
}
public function getProteins(): ?string
{
return $this->proteins;
}
public function setProteins(?string $proteins): self
{
$this->proteins = $proteins;
return $this;
}
public function getMineralSalts(): ?string
{
return $this->mineralSalts;
}
public function setMineralSalts(?string $mineralSalts): self
{
$this->mineralSalts = $mineralSalts;
return $this;
}
public function getSodium(): ?string
{
return $this->sodium;
}
public function setSodium(?string $sodium): self
{
$this->sodium = $sodium;
return $this;
}
public function getVitaminA(): ?string
{
return $this->vitaminA;
}
public function setVitaminA(?string $vitaminA): self
{
$this->vitaminA = $vitaminA;
return $this;
}
public function getVitaminB1(): ?string
{
return $this->vitaminB1;
}
public function setVitaminB1(?string $vitaminB1): self
{
$this->vitaminB1 = $vitaminB1;
return $this;
}
public function getVitaminB2(): ?string
{
return $this->vitaminB2;
}
public function setVitaminB2(?string $vitaminB2): self
{
$this->vitaminB2 = $vitaminB2;
return $this;
}
public function getVitaminB3(): ?string
{
return $this->vitaminB3;
}
public function setVitaminB3(?string $vitaminB3): self
{
$this->vitaminB3 = $vitaminB3;
return $this;
}
public function getVitaminB5(): ?string
{
return $this->vitaminB5;
}
public function setVitaminB5(?string $vitaminB5): self
{
$this->vitaminB5 = $vitaminB5;
return $this;
}
public function getVitaminB6(): ?string
{
return $this->vitaminB6;
}
public function setVitaminB6(?string $vitaminB6): self
{
$this->vitaminB6 = $vitaminB6;
return $this;
}
public function getVitaminB9(): ?string
{
return $this->vitaminB9;
}
public function setVitaminB9(?string $vitaminB9): self
{
$this->vitaminB9 = $vitaminB9;
return $this;
}
public function getVitaminB12(): ?string
{
return $this->vitaminB12;
}
public function setVitaminB12(?string $vitaminB12): self
{
$this->vitaminB12 = $vitaminB12;
return $this;
}
public function getVitaminC(): ?string
{
return $this->vitaminC;
}
public function setVitaminC(?string $vitaminC): self
{
$this->vitaminC = $vitaminC;
return $this;
}
public function getVitaminD(): ?string
{
return $this->vitaminD;
}
public function setVitaminD(?string $vitaminD): self
{
$this->vitaminD = $vitaminD;
return $this;
}
public function getVitaminE(): ?string
{
return $this->vitaminE;
}
public function setVitaminE(?string $vitaminE): self
{
$this->vitaminE = $vitaminE;
return $this;
}
public function getVitaminH(): ?string
{
return $this->vitaminH;
}
public function setVitaminH(?string $vitaminH): self
{
$this->vitaminH = $vitaminH;
return $this;
}
public function getVitaminK(): ?string
{
return $this->vitaminK;
}
public function setVitaminK(?string $vitaminK): self
{
$this->vitaminK = $vitaminK;
return $this;
}
public function getCalcium(): ?string
{
return $this->calcium;
}
public function setCalcium(?string $calcium): self
{
$this->calcium = $calcium;
return $this;
}
public function getIron(): ?string
{
return $this->iron;
}
public function setIron(?string $iron): self
{
$this->iron = $iron;
return $this;
}
public function getMagnesium(): ?string
{
return $this->magnesium;
}
public function setMagnesium(?string $magnesium): self
{
$this->magnesium = $magnesium;
return $this;
}
public function getMatchElement(): ?string
{
return $this->matchElement;
}
public function setMatchElement(?string $matchElement): self
{
$this->matchElement = $matchElement;
return $this;
}
public function getPotassium(): ?string
{
return $this->potassium;
}
public function setPotassium(?string $potassium): self
{
$this->potassium = $potassium;
return $this;
}
public function getChlorine(): ?string
{
return $this->chlorine;
}
public function setChlorine(?string $chlorine): self
{
$this->chlorine = $chlorine;
return $this;
}
public function getZinc(): ?string
{
return $this->zinc;
}
public function setZinc(?string $zinc): self
{
$this->zinc = $zinc;
return $this;
}
public function getCopper(): ?string
{
return $this->copper;
}
public function setCopper(?string $copper): self
{
$this->copper = $copper;
return $this;
}
public function getManganese(): ?string
{
return $this->manganese;
}
public function setManganese(?string $manganese): self
{
$this->manganese = $manganese;
return $this;
}
public function getFluorine(): ?string
{
return $this->fluorine;
}
public function setFluorine(?string $fluorine): self
{
$this->fluorine = $fluorine;
return $this;
}
public function getSelenium(): ?string
{
return $this->selenium;
}
public function setSelenium(?string $selenium): self
{
$this->selenium = $selenium;
return $this;
}
public function getChromium(): ?string
{
return $this->chromium;
}
public function setChromium(?string $chromium): self
{
$this->chromium = $chromium;
return $this;
}
public function getMolybdenum(): ?string{return $this->molybdenum;}
public function setMolybdenum(?string $molybdenum): self
{
$this->molybdenum = $molybdenum;
return $this;
}
public function getIodine(): ?string{return $this->iodine;}
public function setIodine(?string $iodine): self
{
$this->iodine = $iodine;
return $this;
}
public function getSalatrim(): ?string
{
return $this->salatrim;
}
public function setSalatrim(?string $salatrim): RawMaterial
{
$this->salatrim = $salatrim;
return $this;
}
public function getCarbohydrates(): ?string
{
return $this->carbohydrates;
}
public function setCarbohydrates(?string $carbohydrates): RawMaterial
{
$this->carbohydrates = $carbohydrates;
return $this;
}
public function getAlcohol(): ?string
{
return $this->alcohol;
}
public function setAlcohol(?string $alcohol): RawMaterial
{
$this->alcohol = $alcohol;
return $this;
}
public function getOrganicAcids(): ?string
{
return $this->organicAcids;
}
public function setOrganicAcids(?string $organicAcids): RawMaterial
{
$this->organicAcids = $organicAcids;
return $this;
}
public function getErythritol(): ?string
{
return $this->erythritol;
}
public function setErythritol(?string $erythritol): RawMaterial
{
$this->erythritol = $erythritol;
return $this;
}
public function getSalt(): ?string{return $this->salt;}
public function setSalt(?string $salt): RawMaterial
{
$this->salt = $salt;
return $this;
}
public function getLostVolatilization(): ?string{return $this->lostVolatilization;}
public function setLostVolatilization(?string $lostVolatilization): RawMaterial
{
$this->lostVolatilization = $lostVolatilization;
return $this;
}
}