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