Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 29 |
|
0.00% |
0 / 20 |
CRAP | |
0.00% |
0 / 1 |
| Intranetmsg | |
0.00% |
0 / 29 |
|
0.00% |
0 / 20 |
420 | |
0.00% |
0 / 1 |
| __toString | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getAblauftage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setAblauftage | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getArchiv | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setArchiv | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBenutzerlfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBenutzerlfdnr | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getBetreff | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setBetreff | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getKommentare | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setKommentare | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getLfdnr | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPrioritaet | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPrioritaet | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setText | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getUrsprungmsg | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setUrsprungmsg | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getUrsprungrootmsg | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setUrsprungrootmsg | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Satag\AmicronEntityBundle\Entity; |
| 6 | |
| 7 | use Doctrine\DBAL\Types\Types; |
| 8 | use Doctrine\ORM\Mapping as ORM; |
| 9 | use Satag\AmicronEntityBundle\Traits\BlameableEntity; |
| 10 | use Satag\AmicronEntityBundle\Traits\BlameableEntityInterface; |
| 11 | |
| 12 | #[ORM\Entity] |
| 13 | #[ORM\Table(name: 'INTRANETMSG')] |
| 14 | #[ORM\Index(columns: ['benutzerlfdnr'], name: 'INTRANETMSG_BENUTZERLFDNR_FK')] |
| 15 | #[ORM\Index(columns: ['ursprungmsg'], name: 'INTRANETMSG_URSPRUNGMSG_FK')] |
| 16 | #[ORM\Index(columns: ['ursprungrootmsg'], name: 'INTRANETMSG_URSPRUNGROOTMSG_FK')] |
| 17 | class Intranetmsg implements BlameableEntityInterface, \Stringable |
| 18 | { |
| 19 | use BlameableEntity; |
| 20 | |
| 21 | #[ORM\Column(name: 'ablauftage', type: Types::INTEGER, nullable: true)] |
| 22 | private ?int $ablauftage = null; |
| 23 | |
| 24 | #[ORM\Column(name: 'archiv', type: Types::INTEGER, nullable: true)] |
| 25 | private ?int $archiv = null; |
| 26 | |
| 27 | #[ORM\ManyToOne(targetEntity: Benutzer::class)] |
| 28 | #[ORM\JoinColumn(name: 'benutzerlfdnr', referencedColumnName: 'lfdnr')] |
| 29 | private ?Benutzer $benutzerlfdnr = null; |
| 30 | |
| 31 | #[ORM\Column(name: 'betreff', type: Types::STRING, length: 120, nullable: true)] |
| 32 | private ?string $betreff = null; |
| 33 | |
| 34 | #[ORM\Column(name: 'kommentare', type: Types::TEXT, nullable: true)] |
| 35 | private ?string $kommentare = null; |
| 36 | |
| 37 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 38 | #[ORM\Id] |
| 39 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 40 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 41 | public private(set) ?int $lfdnr = null; |
| 42 | |
| 43 | #[ORM\Column(name: 'prioritaet', type: Types::INTEGER, nullable: true)] |
| 44 | private ?int $prioritaet = null; |
| 45 | |
| 46 | #[ORM\Column(name: 'text', type: Types::TEXT, nullable: true)] |
| 47 | private ?string $text = null; |
| 48 | |
| 49 | #[ORM\ManyToOne(targetEntity: Intranetmsg::class)] |
| 50 | #[ORM\JoinColumn(name: 'ursprungmsg', referencedColumnName: 'lfdnr')] |
| 51 | private ?Intranetmsg $ursprungmsg = null; |
| 52 | |
| 53 | #[ORM\ManyToOne(targetEntity: Intranetmsg::class)] |
| 54 | #[ORM\JoinColumn(name: 'ursprungrootmsg', referencedColumnName: 'lfdnr')] |
| 55 | private ?Intranetmsg $ursprungrootmsg = null; |
| 56 | |
| 57 | public function __toString(): string |
| 58 | { |
| 59 | return \sprintf('%s (%s)', $this->betreff, $this->lfdnr); |
| 60 | } |
| 61 | |
| 62 | public function getAblauftage(): ?int |
| 63 | { |
| 64 | return $this->ablauftage; |
| 65 | } |
| 66 | |
| 67 | public function setAblauftage(?int $ablauftage): self |
| 68 | { |
| 69 | $this->ablauftage = $ablauftage; |
| 70 | |
| 71 | return $this; |
| 72 | } |
| 73 | |
| 74 | public function getArchiv(): ?int |
| 75 | { |
| 76 | return $this->archiv; |
| 77 | } |
| 78 | |
| 79 | public function setArchiv(?int $archiv): self |
| 80 | { |
| 81 | $this->archiv = $archiv; |
| 82 | |
| 83 | return $this; |
| 84 | } |
| 85 | |
| 86 | public function getBenutzerlfdnr(): ?Benutzer |
| 87 | { |
| 88 | return $this->benutzerlfdnr; |
| 89 | } |
| 90 | |
| 91 | public function setBenutzerlfdnr(?Benutzer $benutzerlfdnr): self |
| 92 | { |
| 93 | $this->benutzerlfdnr = $benutzerlfdnr; |
| 94 | |
| 95 | return $this; |
| 96 | } |
| 97 | |
| 98 | public function getBetreff(): ?string |
| 99 | { |
| 100 | return $this->betreff; |
| 101 | } |
| 102 | |
| 103 | public function setBetreff(?string $betreff): self |
| 104 | { |
| 105 | $this->betreff = $betreff; |
| 106 | |
| 107 | return $this; |
| 108 | } |
| 109 | |
| 110 | public function getKommentare(): ?string |
| 111 | { |
| 112 | return $this->kommentare; |
| 113 | } |
| 114 | |
| 115 | public function setKommentare(?string $kommentare): self |
| 116 | { |
| 117 | $this->kommentare = $kommentare; |
| 118 | |
| 119 | return $this; |
| 120 | } |
| 121 | |
| 122 | public function getLfdnr(): ?int |
| 123 | { |
| 124 | return $this->lfdnr; |
| 125 | } |
| 126 | |
| 127 | public function getPrioritaet(): ?int |
| 128 | { |
| 129 | return $this->prioritaet; |
| 130 | } |
| 131 | |
| 132 | public function setPrioritaet(?int $prioritaet): self |
| 133 | { |
| 134 | $this->prioritaet = $prioritaet; |
| 135 | |
| 136 | return $this; |
| 137 | } |
| 138 | |
| 139 | public function getText(): ?string |
| 140 | { |
| 141 | return $this->text; |
| 142 | } |
| 143 | |
| 144 | public function setText(?string $text): self |
| 145 | { |
| 146 | $this->text = $text; |
| 147 | |
| 148 | return $this; |
| 149 | } |
| 150 | |
| 151 | public function getUrsprungmsg(): ?self |
| 152 | { |
| 153 | return $this->ursprungmsg; |
| 154 | } |
| 155 | |
| 156 | public function setUrsprungmsg(?self $ursprungmsg): self |
| 157 | { |
| 158 | $this->ursprungmsg = $ursprungmsg; |
| 159 | |
| 160 | return $this; |
| 161 | } |
| 162 | |
| 163 | public function getUrsprungrootmsg(): ?self |
| 164 | { |
| 165 | return $this->ursprungrootmsg; |
| 166 | } |
| 167 | |
| 168 | public function setUrsprungrootmsg(?self $ursprungrootmsg): self |
| 169 | { |
| 170 | $this->ursprungrootmsg = $ursprungrootmsg; |
| 171 | |
| 172 | return $this; |
| 173 | } |
| 174 | } |