Last active
November 4, 2025 15:55
-
-
Save wilcorrea/f7bdf7b74479522bcc3a2cbd6ec73aa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace App\Domain\Entity\Command; | |
| use App\Domain\Enum\Type; | |
| use Constructo\Support\Entity; | |
| class EntityCommand extends Entity | |
| { | |
| public function __construct( | |
| public readonly Type $type, | |
| public readonly string $whatever, | |
| ) { | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace App\Domain\Entity; | |
| use App\Domain\Entity\Command\EntityCommand; | |
| use App\Domain\Enum\Type; | |
| use DateTimeImmutable; | |
| class EntityQuery extends EntityCommand | |
| { | |
| public function __construct( | |
| public readonly int $id, | |
| public readonly DateTimeImmutable $createdAt, | |
| Type $type, | |
| string $whatever, | |
| ) { | |
| parent::__construct($type, $whatever); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment