1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-21 03:08:40 +01:00
phorge-phorge/src/applications/people/customfield/PhabricatorUserConfiguredCustomField.php
Jakub Vrana a778151f28 Fix errors found by PHPStan
Test Plan: Ran `phpstan analyze -a autoload.php phabricator/src`.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, hach-que

Differential Revision: https://secure.phabricator.com/D17371
2017-02-17 10:10:15 +00:00

29 lines
747 B
PHP

<?php
final class PhabricatorUserConfiguredCustomField
extends PhabricatorUserCustomField
implements PhabricatorStandardCustomFieldInterface {
public function getStandardCustomFieldNamespace() {
return 'user';
}
public function createFields($object) {
return PhabricatorStandardCustomField::buildStandardFields(
$this,
PhabricatorEnv::getEnvConfig('user.custom-field-definitions'));
}
public function newStorageObject() {
return new PhabricatorUserConfiguredCustomFieldStorage();
}
protected function newStringIndexStorage() {
return new PhabricatorUserCustomFieldStringIndex();
}
protected function newNumericIndexStorage() {
return new PhabricatorUserCustomFieldNumericIndex();
}
}