symfony-playground/src/Entity/Toothbrush3.php

54 lines
908 B
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
////#[ORM\Entity]
class Toothbrush3
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private int $id;
#[ORM\Column(type: 'string')]
private string $brand;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
* @return Toothbrush3
*/
public function setId(int $id): Toothbrush3
{
$this->id = $id;
return $this;
}
/**
* @return string
*/
public function getBrand(): string
{
return $this->brand;
}
/**
* @param string $brand
* @return Toothbrush3
*/
public function setBrand(string $brand): Toothbrush3
{
$this->brand = $brand;
return $this;
}
}