43 lines
707 B
PHP
43 lines
707 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\MaterialRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: MaterialRepository::class)]
|
|
class Material
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column(length: 50)]
|
|
private ?string $term = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setId(string $id): static
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getTerm(): ?string
|
|
{
|
|
return $this->term;
|
|
}
|
|
|
|
public function setTerm(string $term): static
|
|
{
|
|
$this->term = $term;
|
|
|
|
return $this;
|
|
}
|
|
}
|