for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace App\Entity;
/**
* Entry
*
* @Table(
* name="entry",
* )
* @Entity(
* repositoryClass="App\Repository\EntryRepository"
* @OpenApi\Schema(
* refName="Entry",
* type="object",
* required={"id", "name"},
* properties={
* "id": @OpenApi\SchemaReference(
* class="App\Entity\Entry",
* property="id",
* ),
* "name": @OpenApi\SchemaReference(
* property="name",
* },
*/
final class Entry
{
* The entry ID
* @Id()
* @Column(
* type="integer",
* options={
* "unsigned": true,
* @GeneratedValue(
* strategy="AUTO",
* refName="EntryId",
* format="int32",
* minimum=1,
* maximum=PHP_INT_MAX,
* nullable=false,
* readOnly=true,
* @var null|int
private $id;
* The entry name
* type="string",
* length=255,
* refName="EntryName",
* minLength=1,
* maxLength=255,
* @var null|string
private $name;
* {@inheritDoc}
public function getId() : ?int
return $this->id;
}
public function getName() : ?string
return $this->name;
public function setName(string $name) : void
$this->name = $name;