collection-crud/src/Entity/BatteryType.php

24 lines
426 B
PHP

<?php declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Battery Type
*/
#[ORM\Table(name: 'battery_type', schema: 'collection')]
#[ORM\Entity]
class BatteryType
{
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private int $id;
public function getId(): ?int
{
return $this->id;
}
}