* This is a dummy entity. Remove it! */
| 10 | * This is a dummy entity. Remove it! |
| 11 | */ |
| 12 | #[ApiResource(mercure: true)] |
| 13 | #[ORM\Entity] |
| 14 | class Greeting |
| 15 | { |
| 16 | /** |
| 17 | * The entity ID |
| 18 | */ |
| 19 | #[ORM\Id] |
| 20 | #[ORM\Column(type: 'integer')] |
| 21 | #[ORM\GeneratedValue] |
| 22 | private ?int $id = null; |
| 23 | |
| 24 | /** |
| 25 | * A nice person |
| 26 | */ |
| 27 | #[ORM\Column] |
| 28 | #[Assert\NotBlank] |
| 29 | public string $name = ''; |
| 30 | |
| 31 | public function getId(): ?int |
| 32 | { |
| 33 | return $this->id; |
| 34 | } |
| 35 | } |
nothing calls this directly
no outgoing calls
no test coverage detected