Passed
Push — main ( f1aa52...bbae52 )
by Karl
06:11
created

JournalEntry::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Entity;
4
5
use ApiPlatform\Metadata\ApiResource;
6
use App\Repository\JournalEntryRepository;
7
use Doctrine\ORM\Mapping as ORM;
8
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
78
    {
79
        $this->journalLineItem = $journalLineItem;
80
81
        return $this;
82
    }
83
}
84