dsantang /
domain-events-doctrine
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Dsantang\DomainEventsDoctrine\Tests; |
||
| 6 | |||
| 7 | use Doctrine\ORM\Mapping as ORM; |
||
| 8 | use Dsantang\DomainEventsDoctrine\Outbox\OutboxMappedSuperclass; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @ORM\Entity() |
||
| 12 | * @ORM\Table |
||
| 13 | */ |
||
| 14 | class OutboxSubClass extends OutboxMappedSuperclass |
||
| 15 | { |
||
| 16 | /** @ORM\Column(type="string", name="field_1", nullable=true) */ |
||
| 17 | private readonly string $field1; |
||
| 18 | |||
| 19 | /** @ORM\Column(type="string", name="field_2", nullable=true) */ |
||
| 20 | private readonly string $field2; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 23 | { |
||
| 24 | $this->field1 = ''; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 25 | $this->field2 = ''; |
||
|
0 ignored issues
–
show
|
|||
| 26 | } |
||
| 27 | |||
| 28 | public function getField1(): string |
||
| 29 | { |
||
| 30 | return $this->field1; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getField2(): string |
||
| 34 | { |
||
| 35 | return $this->field2; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |