. */ namespace SP\Domain\User\Models; use SP\DataModel\ProfileData; use SP\Domain\Common\Attributes\Hydratable; use SP\Domain\Common\Models\ItemWithIdAndNameModel; use SP\Domain\Common\Models\Model; use SP\Domain\Common\Models\SerializedModel; /** * Class UserProfile */ #[Hydratable('profile', [ProfileData::class])] class UserProfile extends Model implements ItemWithIdAndNameModel { use SerializedModel; public const TABLE = 'UserProfile'; protected ?int $id = null; protected ?string $name = null; protected ?string $profile = null; /** * @return string|null */ public function getName(): ?string { return $this->name; } /** * @return int|null */ public function getId(): ?int { return $this->id; } /** * @return string */ public function getProfile(): string { return $this->profile; } }