Download src/Stat/Domain/Entities/SignupStatEntity.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 766 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Stat/Domain/Entities/SignupStatEntity.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Stat/Domain/Entities/SignupStatEntity.php
-
curl -L -o SignupStatEntity.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Stat/Domain/Entities/SignupStatEntity.php
766 Bytes
| declare(strict_types=1); | |
| namespace Stat\Domain\Entities; | |
| use Doctrine\DBAL\Types\Types; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Shared\Domain\ValueObjects\CountryCode; | |
| use Stat\Domain\ValueObjects\Metric; | |
| #[ORM\Entity] | |
| class SignupStatEntity extends AbstractStatEntity | |
| { | |
| #[ORM\Column(type: Types::STRING, enumType: CountryCode::class, name: 'country_code', nullable: true)] | |
| private ?CountryCode $countryCode = null; | |
| public function __construct( | |
| ?CountryCode $countryCode = null | |
| ) { | |
| parent::__construct(); | |
| $this->incrementMetric( | |
| new Metric(1) | |
| ); | |
| $this->countryCode = $countryCode; | |
| } | |
| public function getCountryCode(): ?CountryCode | |
| { | |
| return $this->countryCode; | |
| } | |
| } | |