Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Waehrungskurse | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 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: 'WAEHRUNGSKURSE')] |
| 14 | #[ORM\UniqueConstraint(name: 'WAEHRUNGSKURSE_UK', columns: ['datum', 'waehrung'])] |
| 15 | class Waehrungskurse implements BlameableEntityInterface |
| 16 | { |
| 17 | use BlameableEntity; |
| 18 | |
| 19 | #[ORM\Column(name: 'datum', type: Types::DATETIME_IMMUTABLE, nullable: false)] |
| 20 | public \DateTimeImmutable $datum; |
| 21 | |
| 22 | #[ORM\Column(name: 'lfdnr', type: Types::INTEGER, nullable: false)] |
| 23 | #[ORM\Id] |
| 24 | #[ORM\GeneratedValue(strategy: 'SEQUENCE')] |
| 25 | #[ORM\SequenceGenerator(sequenceName: 'GEN_LFDNR', allocationSize: 1, initialValue: 1)] |
| 26 | public private(set) ?int $lfdnr = null; |
| 27 | |
| 28 | #[ORM\Column(name: 'waehrung', type: Types::STRING, length: 3, nullable: false)] |
| 29 | public string $waehrung; |
| 30 | |
| 31 | #[ORM\Column(name: 'waehrungskurs', type: 'amicron_decimal', precision: 15, scale: 6, nullable: false)] |
| 32 | public string $waehrungskurs; |
| 33 | } |