misuzu/src/Profile/ProfileFieldValueInfo.php

35 lines
803 B
PHP
Raw Normal View History

2023-07-20 19:36:43 +00:00
<?php
namespace Misuzu\Profile;
use Index\Data\IDbResult;
class ProfileFieldValueInfo {
private string $fieldId;
private string $userId;
private string $formatId;
private string $value;
public function __construct(IDbResult $result) {
$this->fieldId = (string)$result->getInteger(0);
$this->userId = (string)$result->getInteger(1);
$this->formatId = (string)$result->getInteger(2);
$this->value = $result->getString(3);
}
public function getFieldId(): string {
return $this->fieldId;
}
public function getUserId(): string {
return $this->userId;
}
public function getFormatId(): string {
return $this->formatId;
}
public function getValue(): string {
return $this->value;
}
}