Download src/User/Domain/ValueObjects/IsEmailVerified.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/User/Domain/ValueObjects/IsEmailVerified.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/User/Domain/ValueObjects/IsEmailVerified.php
-
curl -L -o IsEmailVerified.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/User/Domain/ValueObjects/IsEmailVerified.php
566 Bytes
| declare(strict_types=1); | |
| namespace User\Domain\ValueObjects; | |
| use Doctrine\DBAL\Types\Types; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use JsonSerializable; | |
| use Override; | |
| #[ORM\Embeddable] | |
| class IsEmailVerified implements JsonSerializable | |
| { | |
| #[ORM\Column(type: Types::BOOLEAN, name: "is_email_verified", nullable: true)] | |
| public readonly ?bool $value; | |
| public function __construct(bool $value = false) | |
| { | |
| $this->value = $value; | |
| } | |
| public function jsonSerialize(): bool | |
| { | |
| return $this->value ?? false; | |
| } | |
| } | |