Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
ModifierEntity
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
1 / 1
 setGeaendertam
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getGeaendertam
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setGeaendertvon
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getGeaendertvon
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php declare(strict_types=1);
2
3namespace Satag\AmicronEntityBundle\Traits;
4
5use Doctrine\DBAL\Types\Types;
6use Doctrine\ORM\Mapping as ORM;
7
8trait ModifierEntity
9{
10    #[ORM\Column(name: 'geaendertam', type: Types::DATETIME_IMMUTABLE, nullable: true)]
11    public protected(set) ?\DateTimeImmutable $geaendertam = null {
12        set(\DateTimeImmutable|\DateTime|null $value) {
13            $this->geaendertam = $value instanceof \DateTime
14                ? \DateTimeImmutable::createFromMutable($value)
15                : $value;
16        }
17    }
18
19    #[ORM\Column(name: 'geaendertvon', type: Types::STRING, length: 3, nullable: true)]
20    public protected(set) ?string $geaendertvon = null;
21
22    /**
23     * @deprecated Use property directly: $this->geaendertam = $value
24     */
25    public function setGeaendertam(\DateTimeImmutable|\DateTime|null $dateTime): static
26    {
27        $this->geaendertam = $dateTime;
28
29        return $this;
30    }
31
32    /**
33     * @deprecated Use property directly: $this->geaendertam
34     */
35    public function getGeaendertam(): ?\DateTimeImmutable
36    {
37        return $this->geaendertam;
38    }
39
40    /**
41     * @deprecated Use property directly: $this->geaendertvon = $value
42     */
43    public function setGeaendertvon(?string $kuerzel): static
44    {
45        $this->geaendertvon = $kuerzel;
46
47        return $this;
48    }
49
50    /**
51     * @deprecated Use property directly: $this->geaendertvon
52     */
53    public function getGeaendertvon(): ?string
54    {
55        return $this->geaendertvon;
56    }
57}