. */ namespace SP\DataModel; use SP\Domain\Common\Models\ItemWithIdAndNameModel; use SP\Domain\Common\Models\Model; defined('APP_ROOT') || die(); /** * Class ProfileBaseData * * @package SP\DataModel */ class UserProfile extends Model implements ItemWithIdAndNameModel { 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; } }