Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
37.50% |
3 / 8 |
|
66.67% |
2 / 3 |
CRAP | |
0.00% |
0 / 1 |
| Mitarbeiter | |
37.50% |
3 / 8 |
|
66.67% |
2 / 3 |
5.20 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| getArt | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| __toString | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Satag\AmicronEntityBundle\Entity; |
| 6 | |
| 7 | use Doctrine\ORM\Mapping as ORM; |
| 8 | use Satag\AmicronEntityBundle\Traits\DisableAutomappingBlobWorkaround; |
| 9 | |
| 10 | #[ORM\Entity] |
| 11 | #[ORM\HasLifecycleCallbacks] |
| 12 | class Mitarbeiter extends Adresse implements \Stringable |
| 13 | { |
| 14 | use DisableAutomappingBlobWorkaround; |
| 15 | |
| 16 | public function __construct( |
| 17 | ) { |
| 18 | $this->setArt('M'); |
| 19 | parent::__construct(); |
| 20 | } |
| 21 | |
| 22 | public function getArt(): string |
| 23 | { |
| 24 | return 'M'; |
| 25 | } |
| 26 | |
| 27 | public function __toString(): string |
| 28 | { |
| 29 | return \sprintf( |
| 30 | '\\\\Mitarbeiter:%s (%s)', |
| 31 | $this->lfdnr, |
| 32 | $this->getNr() |
| 33 | ); |
| 34 | } |
| 35 | } |