| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | #[ApiResource( |
||
| 14 | normalizationContext: ['groups' => ['page_layout_template:read']], |
||
| 15 | denormalizationContext: ['groups' => ['page_layout_template:write']] |
||
| 16 | )] |
||
| 17 | #[ORM\Table(name: 'page_layout_template')] |
||
| 18 | #[ORM\Entity] |
||
| 19 | class PageLayoutTemplate |
||
| 20 | { |
||
| 21 | #[Groups(['page_layout_template:read'])] |
||
| 22 | #[ORM\Id] |
||
| 23 | #[ORM\GeneratedValue] |
||
| 24 | #[ORM\Column(type: 'integer')] |
||
| 25 | private ?int $id = null; |
||
| 26 | |||
| 27 | #[Groups(['page_layout_template:read', 'page_layout_template:write'])] |
||
| 28 | #[ORM\Column(type: 'string', length: 255, nullable: true)] |
||
| 29 | private ?string $name = null; |
||
| 30 | |||
| 31 | #[Groups(['page_layout_template:read', 'page_layout_template:write'])] |
||
| 32 | #[ORM\Column(type: 'text')] |
||
| 33 | private string $layout; |
||
| 34 | |||
| 35 | public function getId(): ?int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getName(): ?string |
||
| 41 | { |
||
| 42 | return $this->name; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setName(?string $name): self |
||
| 46 | { |
||
| 47 | $this->name = $name; |
||
| 48 | return $this; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getLayout(): string |
||
| 54 | } |
||
| 55 | |||
| 56 | public function setLayout(string $layout): self |
||
| 61 | } |
||
| 62 | } |
||
| 63 |