|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Entity; |
|
4
|
|
|
|
|
5
|
|
|
use ApiPlatform\Metadata\ApiResource; |
|
6
|
|
|
use App\Repository\AccountRepository; |
|
7
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
8
|
|
|
|
|
9
|
|
|
#[ORM\Entity(repositoryClass: AccountRepository::class)] |
|
10
|
|
|
#[ApiResource] |
|
11
|
|
|
class Account |
|
12
|
|
|
{ |
|
13
|
|
|
#[ORM\Id] |
|
14
|
|
|
#[ORM\GeneratedValue] |
|
15
|
|
|
#[ORM\Column] |
|
16
|
|
|
private ?int $id = null; |
|
17
|
|
|
|
|
18
|
|
|
#[ORM\Column(length: 255)] |
|
19
|
|
|
private ?string $AccountNumber = null; |
|
20
|
|
|
|
|
21
|
|
|
#[ORM\Column(length: 255)] |
|
22
|
|
|
private ?string $Name = null; |
|
23
|
|
|
|
|
24
|
|
|
#[ORM\Column(length: 255, nullable: true)] |
|
25
|
|
|
private ?string $Description = null; |
|
26
|
|
|
|
|
27
|
|
|
#[ORM\ManyToOne(inversedBy: 'Account')] |
|
28
|
|
|
private ?JournalLineItem $journalLineItem = null; |
|
29
|
|
|
|
|
30
|
|
|
public function getId(): ?int |
|
31
|
|
|
{ |
|
32
|
|
|
return $this->id; |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
public function getAccountNumber(): ?string |
|
36
|
|
|
{ |
|
37
|
|
|
return $this->AccountNumber; |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
public function setAccountNumber(string $AccountNumber): static |
|
41
|
|
|
{ |
|
42
|
|
|
$this->AccountNumber = $AccountNumber; |
|
43
|
|
|
|
|
44
|
|
|
return $this; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function getName(): ?string |
|
48
|
|
|
{ |
|
49
|
|
|
return $this->Name; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
public function setName(string $Name): static |
|
53
|
|
|
{ |
|
54
|
|
|
$this->Name = $Name; |
|
55
|
|
|
|
|
56
|
|
|
return $this; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
public function getDescription(): ?string |
|
60
|
|
|
{ |
|
61
|
|
|
return $this->Description; |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
public function setDescription(?string $Description): static |
|
65
|
|
|
{ |
|
66
|
|
|
$this->Description = $Description; |
|
67
|
|
|
|
|
68
|
|
|
return $this; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
public function getJournalLineItem(): ?JournalLineItem |
|
72
|
|
|
{ |
|
73
|
|
|
return $this->journalLineItem; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
public function setJournalLineItem(?JournalLineItem $journalLineItem): static |
|
77
|
|
|
{ |
|
78
|
|
|
$this->journalLineItem = $journalLineItem; |
|
79
|
|
|
|
|
80
|
|
|
return $this; |
|
81
|
|
|
} |
|
82
|
|
|
} |
|
83
|
|
|
|