MCPcopy Create free account
hub / github.com/api-platform/website / Greeting

Class Greeting

api/src/Entity/Greeting.php:12–35  ·  view source on GitHub ↗

* This is a dummy entity. Remove it! */

Source from the content-addressed store, hash-verified

10 * This is a dummy entity. Remove it!
11 */
12#[ApiResource(mercure: true)]
13#[ORM\Entity]
14class 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected