| Total Complexity | 9 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | #[ORM\Entity(repositoryClass: JournalEntryRepository::class)] |
||
| 10 | #[ApiResource] |
||
| 11 | class JournalEntry |
||
| 12 | { |
||
| 13 | #[ORM\Id] |
||
| 14 | #[ORM\GeneratedValue] |
||
| 15 | #[ORM\Column] |
||
| 16 | private ?int $id = null; |
||
| 17 | |||
| 18 | #[ORM\Column(length: 255)] |
||
| 19 | private ?string $Title = null; |
||
| 20 | |||
| 21 | #[ORM\Column(nullable: true)] |
||
| 22 | private ?float $Amount = null; |
||
| 23 | |||
| 24 | #[ORM\ManyToOne(inversedBy: 'journalEntries')] |
||
| 25 | #[ORM\JoinColumn(nullable: false)] |
||
| 26 | private ?Journal $Journal = null; |
||
| 27 | |||
| 28 | #[ORM\ManyToOne(inversedBy: 'JournalEntry')] |
||
| 29 | private ?JournalLineItem $journalLineItem = null; |
||
| 30 | |||
| 31 | public function getId(): ?int |
||
| 32 | { |
||
| 33 | return $this->id; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getTitle(): ?string |
||
| 37 | { |
||
| 38 | return $this->Title; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function setTitle(string $Title): static |
||
| 42 | { |
||
| 43 | $this->Title = $Title; |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getAmount(): ?float |
||
| 49 | { |
||
| 50 | return $this->Amount; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function setAmount(?float $Amount): static |
||
| 54 | { |
||
| 55 | $this->Amount = $Amount; |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | public function getJournal(): ?Journal |
||
| 61 | { |
||
| 62 | return $this->Journal; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function setJournal(?Journal $Journal): static |
||
| 66 | { |
||
| 67 | $this->Journal = $Journal; |
||
| 68 | |||
| 69 | return $this; |
||
| 70 | } |
||
| 71 | |||
| 72 | public function getJournalLineItem(): ?JournalLineItem |
||
| 73 | { |
||
| 74 | return $this->journalLineItem; |
||
| 75 | } |
||
| 76 | |||
| 77 | public function setJournalLineItem(?JournalLineItem $journalLineItem): static |
||
| 82 | } |
||
| 83 | } |
||
| 84 |