-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathItem.php
More file actions
49 lines (39 loc) · 1019 Bytes
/
Item.php
File metadata and controls
49 lines (39 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
declare(strict_types=1);
namespace EonX\EasyPagination\Tests\Stub\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use EonX\EasyPagination\Tests\Stub\Enum\Status;
#[ORM\Entity]
#[ORM\Table(name: 'items')]
class Item
{
#[ORM\Column(type: Types::INTEGER)]
#[ORM\GeneratedValue]
#[ORM\Id]
private int $id;
#[ORM\Column(type: Types::STRING, length: 255, nullable: true, enumType: Status::class)]
private ?Status $status = null;
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $title = null;
public function getId(): int
{
return $this->id;
}
public function getStatus(): ?Status
{
return $this->status;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setStatus(?Status $status): void
{
$this->status = $status;
}
public function setTitle(?string $title): void
{
$this->title = $title;
}
}