Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| Auftraglieferant | |
0.00% |
0 / 4 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getArt | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| __toString | |
0.00% |
0 / 1 |
|
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\AuftragStatusTrait; |
| 9 | use Satag\AmicronEntityBundle\Traits\DisableAutomappingAuftragnrWorkaround; |
| 10 | |
| 11 | /** |
| 12 | * @see \Satag\AmicronEntityBundle\Tests\Entity\AuftraglieferantTest |
| 13 | */ |
| 14 | #[ORM\Entity] |
| 15 | class Auftraglieferant extends Auftrag implements \Stringable |
| 16 | { |
| 17 | use AuftragStatusTrait; |
| 18 | use DisableAutomappingAuftragnrWorkaround; |
| 19 | |
| 20 | final public const int ANFRAGE = 1; |
| 21 | final public const int BESTELLUNG = 2; |
| 22 | final public const int WARENEINGANG = 3; |
| 23 | final public const int EINGANGSRECHUNG = 4; |
| 24 | final public const int STORNO = 5; |
| 25 | final public const int SONSTIGE = 6; |
| 26 | final public const int RETOURLIEFERSCHEIN = 7; |
| 27 | |
| 28 | public function __construct( |
| 29 | int $auftragart = 1 |
| 30 | ) { |
| 31 | $this->setArt('B'); |
| 32 | parent::__construct($auftragart); |
| 33 | } |
| 34 | |
| 35 | public function getArt(): ?string |
| 36 | { |
| 37 | return 'B'; |
| 38 | } |
| 39 | |
| 40 | public function __toString(): string |
| 41 | { |
| 42 | return \sprintf('\\\\Bestellung:%s (%s)', $this->lfdnr, $this->getAuftragnr()); |
| 43 | } |
| 44 | } |