sentence1
stringlengths 52
3.87M
| sentence2
stringlengths 1
47.2k
| label
stringclasses 1
value |
---|---|---|
public function postFleetsFleetIdMembers($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
$this->postFleetsFleetIdMembersWithHttpInfo($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent);
} | Operation postFleetsFleetIdMembers
Create fleet invitation
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return void | entailment |
public function postFleetsFleetIdMembersAsync($fleetId, $invitation, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postFleetsFleetIdMembersAsyncWithHttpInfo($fleetId, $invitation, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation postFleetsFleetIdMembersAsync
Create fleet invitation
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PostFleetsFleetIdMembersInvitation $invitation Details of the invitation (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function postFleetsFleetIdWings($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->postFleetsFleetIdWingsWithHttpInfo($fleetId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation postFleetsFleetIdWings
Create fleet wing
@param int $fleetId ID for a fleet (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\PostFleetsFleetIdWingsCreated | entailment |
public function postFleetsFleetIdWingsAsync($fleetId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postFleetsFleetIdWingsAsyncWithHttpInfo($fleetId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation postFleetsFleetIdWingsAsync
Create fleet wing
@param int $fleetId ID for a fleet (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function postFleetsFleetIdWingsWingIdSquadsAsync($fleetId, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->postFleetsFleetIdWingsWingIdSquadsAsyncWithHttpInfo($fleetId, $wingId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation postFleetsFleetIdWingsWingIdSquadsAsync
Create fleet squad
@param int $fleetId ID for a fleet (required)
@param int $wingId The wing_id to create squad in (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function putFleetsFleetId($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
$this->putFleetsFleetIdWithHttpInfo($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent);
} | Operation putFleetsFleetId
Update fleet
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return void | entailment |
public function putFleetsFleetIdAsync($fleetId, $newSettings, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->putFleetsFleetIdAsyncWithHttpInfo($fleetId, $newSettings, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation putFleetsFleetIdAsync
Update fleet
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PutFleetsFleetIdNewSettings $newSettings What to update for this fleet (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function putFleetsFleetIdMembersMemberIdAsync($fleetId, $memberId, $movement, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->putFleetsFleetIdMembersMemberIdAsyncWithHttpInfo($fleetId, $memberId, $movement, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation putFleetsFleetIdMembersMemberIdAsync
Move fleet member
@param int $fleetId ID for a fleet (required)
@param int $memberId The character ID of a member in this fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PutFleetsFleetIdMembersMemberIdMovement $movement Details of the invitation (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function putFleetsFleetIdSquadsSquadIdAsync($fleetId, $naming, $squadId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->putFleetsFleetIdSquadsSquadIdAsyncWithHttpInfo($fleetId, $naming, $squadId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation putFleetsFleetIdSquadsSquadIdAsync
Rename fleet squad
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PutFleetsFleetIdSquadsSquadIdNaming $naming New name of the squad (required)
@param int $squadId The squad to rename (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function putFleetsFleetIdWingsWingId($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
$this->putFleetsFleetIdWingsWingIdWithHttpInfo($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent);
} | Operation putFleetsFleetIdWingsWingId
Rename fleet wing
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required)
@param int $wingId The wing to rename (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return void | entailment |
public function putFleetsFleetIdWingsWingIdAsync($fleetId, $naming, $wingId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->putFleetsFleetIdWingsWingIdAsyncWithHttpInfo($fleetId, $naming, $wingId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation putFleetsFleetIdWingsWingIdAsync
Rename fleet wing
@param int $fleetId ID for a fleet (required)
@param \nullx27\ESI\nullx27\ESI\Models\PutFleetsFleetIdWingsWingIdNaming $naming New name of the wing (required)
@param int $wingId The wing to rename (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function setActivity($activity)
{
$allowedValues = $this->getActivityAllowableValues();
if (!in_array($activity, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'activity', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['activity'] = $activity;
return $this;
} | Sets activity
@param string $activity activity string
@return $this | entailment |
public static function generateTranslationsFile($absoluteTranslationFileName)
{
$translations = array();
if (file_exists($absoluteTranslationFileName)) {
@include($absoluteTranslationFileName);
} else {
Cache::getInstance()->storeData($absoluteTranslationFileName, "<?php \$translations = array();\n", Cache::TEXT, TRUE);
}
return $translations;
} | Create translation file if not exists
@param string $absoluteTranslationFileName
@return array | entailment |
public static function setLocale($default = null)
{
$locale = self::extractLocale($default);
Logger::log('Set locale to project [' . $locale . ']');
// Load translations
putenv("LC_ALL=" . $locale);
setlocale(LC_ALL, $locale);
// Load the locale path
$locale_path = BASE_DIR . DIRECTORY_SEPARATOR . 'locale';
Logger::log('Set locale dir ' . $locale_path);
GeneratorHelper::createDir($locale_path);
bindtextdomain('translations', $locale_path);
textdomain('translations');
bind_textdomain_codeset('translations', 'UTF-8');
Security::getInstance()->setSessionKey(I18nHelper::PSFS_SESSION_LANGUAGE_KEY, substr($locale, 0, 2));
} | Method to set the locale
@param string $default
@throws \Exception | entailment |
public function getCharactersCharacterIdAssets($characterId, $datasource = null, $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdAssetsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdAssets
Get character assets
@param int $characterId Character id of the target character (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use, if preferred over a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@return \nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[] | entailment |
public function getInsurancePrices($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getInsurancePricesWithHttpInfo($datasource, $language, $userAgent, $xUserAgent);
return $response;
} | Operation getInsurancePrices
List insurance levels
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetInsurancePrices200Ok[] | entailment |
public function getInsurancePricesAsync($datasource = 'tranquility', $language = 'en-us', $userAgent = null, $xUserAgent = null)
{
return $this->getInsurancePricesAsyncWithHttpInfo($datasource, $language, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getInsurancePricesAsync
List insurance levels
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function map(array $verbs, string $uri, $callback): Route
{
if ($this->isControllerString($callback)) {
$callback = $this->normaliseCallbackString($callback);
}
return parent::map($verbs, $uri, $callback);
} | Map a router action to a set of Http verbs and a URI
@param array $verbs
@param string $uri
@param callable|string $callback
@return Rareloop\Router\Route | entailment |
private function normaliseCallbackString(string $callback) : string
{
@list($controller, $method) = explode('@', $callback);
if (class_exists($this->defaultControllerNamespace . $controller)) {
return $this->defaultControllerNamespace . $callback;
}
return $callback;
} | Add the default namespace to the Controller classname if required
@param string $callback
@return string | entailment |
public function listInvalidProperties()
{
$invalid_properties = [];
if ($this->container['characterId'] === null) {
$invalid_properties[] = "'characterId' can't be null";
}
if ($this->container['joinTime'] === null) {
$invalid_properties[] = "'joinTime' can't be null";
}
if ($this->container['role'] === null) {
$invalid_properties[] = "'role' can't be null";
}
$allowed_values = ["fleet_commander", "wing_commander", "squad_commander", "squad_member"];
if (!in_array($this->container['role'], $allowed_values)) {
$invalid_properties[] = "invalid value for 'role', must be one of #{allowed_values}.";
}
if ($this->container['roleName'] === null) {
$invalid_properties[] = "'roleName' can't be null";
}
if ($this->container['shipTypeId'] === null) {
$invalid_properties[] = "'shipTypeId' can't be null";
}
if ($this->container['solarSystemId'] === null) {
$invalid_properties[] = "'solarSystemId' can't be null";
}
if ($this->container['squadId'] === null) {
$invalid_properties[] = "'squadId' can't be null";
}
if ($this->container['takesFleetWarp'] === null) {
$invalid_properties[] = "'takesFleetWarp' can't be null";
}
if ($this->container['wingId'] === null) {
$invalid_properties[] = "'wingId' can't be null";
}
return $invalid_properties;
} | show all the invalid properties with reasons.
@return array invalid properties with reasons | entailment |
public function valid()
{
if ($this->container['characterId'] === null) {
return false;
}
if ($this->container['joinTime'] === null) {
return false;
}
if ($this->container['role'] === null) {
return false;
}
$allowed_values = ["fleet_commander", "wing_commander", "squad_commander", "squad_member"];
if (!in_array($this->container['role'], $allowed_values)) {
return false;
}
if ($this->container['roleName'] === null) {
return false;
}
if ($this->container['shipTypeId'] === null) {
return false;
}
if ($this->container['solarSystemId'] === null) {
return false;
}
if ($this->container['squadId'] === null) {
return false;
}
if ($this->container['takesFleetWarp'] === null) {
return false;
}
if ($this->container['wingId'] === null) {
return false;
}
return true;
} | validate all the properties in the model
return true if all passed
@return bool True if all properteis are valid | entailment |
public function setRole($role)
{
$allowed_values = array('fleet_commander', 'wing_commander', 'squad_commander', 'squad_member');
if ((!in_array($role, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'role', must be one of 'fleet_commander', 'wing_commander', 'squad_commander', 'squad_member'");
}
$this->container['role'] = $role;
return $this;
} | Sets role
@param string $role Member’s role in fleet
@return $this | entailment |
public function reset()
{
$this->startTime = null;
$this->endTime = null;
$this->result = null;
$this->exception = null;
$this->status = TaskStatus::PLANNED;
return $this;
} | {@inheritdoc} | entailment |
public function mapCol(string $table, string $name, string $type, string $len = null): array
{
// Try to find by colsName
$colsName = $this->getColsNameMapping();
foreach ($colsName as $colRegex => $params) {
preg_match("/^$colRegex\$/i", $table. '.' . $name, $matches);
if (!empty($matches)) {
return $params;
}
}
// Hardcoded types
if ($type === 'enum') {
return [
'method' => 'randomElement',
'params' => [explode("','", substr($len, 1, -1))]
];
}
// Try to find by fieldType
$colsType = $this->getColsTypeMapping($len);
if (!array_key_exists($type, $colsType)) {
$msg = "Can't guess the type $type ({$table}.{$name})";
throw new NeuralyzerGuesserException($msg);
}
return $colsType[$type];
} | Will map cols first by looking for field name then by looking for field type
if the first returned nothing
@param string $table
@param string $name
@param string $type
@param mixed $len Used to get options from enum (stored in length)
@return array
@throws NeuralyzerGuesserException | entailment |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['orderId'] === null) {
$invalidProperties[] = "'orderId' can't be null";
}
if ($this->container['typeId'] === null) {
$invalidProperties[] = "'typeId' can't be null";
}
if ($this->container['regionId'] === null) {
$invalidProperties[] = "'regionId' can't be null";
}
if ($this->container['locationId'] === null) {
$invalidProperties[] = "'locationId' can't be null";
}
if ($this->container['range'] === null) {
$invalidProperties[] = "'range' can't be null";
}
$allowedValues = $this->getRangeAllowableValues();
if (!in_array($this->container['range'], $allowedValues)) {
$invalidProperties[] = sprintf(
"invalid value for 'range', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if ($this->container['isBuyOrder'] === null) {
$invalidProperties[] = "'isBuyOrder' can't be null";
}
if ($this->container['price'] === null) {
$invalidProperties[] = "'price' can't be null";
}
if ($this->container['volumeTotal'] === null) {
$invalidProperties[] = "'volumeTotal' can't be null";
}
if ($this->container['volumeRemain'] === null) {
$invalidProperties[] = "'volumeRemain' can't be null";
}
if ($this->container['issued'] === null) {
$invalidProperties[] = "'issued' can't be null";
}
if ($this->container['state'] === null) {
$invalidProperties[] = "'state' can't be null";
}
$allowedValues = $this->getStateAllowableValues();
if (!in_array($this->container['state'], $allowedValues)) {
$invalidProperties[] = sprintf(
"invalid value for 'state', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if ($this->container['minVolume'] === null) {
$invalidProperties[] = "'minVolume' can't be null";
}
if ($this->container['accountId'] === null) {
$invalidProperties[] = "'accountId' can't be null";
}
if ($this->container['duration'] === null) {
$invalidProperties[] = "'duration' can't be null";
}
if ($this->container['isCorp'] === null) {
$invalidProperties[] = "'isCorp' can't be null";
}
if ($this->container['escrow'] === null) {
$invalidProperties[] = "'escrow' can't be null";
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | entailment |
public function setEventType($eventType)
{
$allowed_values = array('tcu_defense', 'ihub_defense', 'station_defense', 'station_freeport');
if ((!in_array($eventType, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'eventType', must be one of 'tcu_defense', 'ihub_defense', 'station_defense', 'station_freeport'");
}
$this->container['eventType'] = $eventType;
return $this;
} | Sets eventType
@param string $eventType Type of event this campaign is for. tcu_defense, ihub_defense and station_defense are referred to as \"Defense Events\", station_freeport as \"Freeport Events\".
@return $this | entailment |
public function write(array $fields): int
{
$options = $this->getCsvControl();
$delimiter = $options[0];
$enclosure = $options[1];
if (!empty($enclosure)) {
return $this->fputcsv($fields, $delimiter, $enclosure);
}
$fields = array_map(function ($field) use ($delimiter) {
return str_replace([$delimiter, PHP_EOL], ['', ''], $field);
}, $fields);
return $this->fwrite(implode($delimiter, $fields) . PHP_EOL);
} | Write a CSV line either by PHP standard or manually when no $enclosure
@param array $fields
@return int | entailment |
public function getGrantableRolesAtHqAllowableValues()
{
return [
self::GRANTABLE_ROLES_AT_HQ_DIRECTOR,
self::GRANTABLE_ROLES_AT_HQ_PERSONNEL_MANAGER,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNTANT,
self::GRANTABLE_ROLES_AT_HQ_SECURITY_OFFICER,
self::GRANTABLE_ROLES_AT_HQ_FACTORY_MANAGER,
self::GRANTABLE_ROLES_AT_HQ_STATION_MANAGER,
self::GRANTABLE_ROLES_AT_HQ_AUDITOR,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_1,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_2,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_3,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_4,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_5,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_6,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_TAKE_7,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_1,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_2,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_3,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_4,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_5,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_6,
self::GRANTABLE_ROLES_AT_HQ_HANGAR_QUERY_7,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_1,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_2,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_3,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_4,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_5,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_6,
self::GRANTABLE_ROLES_AT_HQ_ACCOUNT_TAKE_7,
self::GRANTABLE_ROLES_AT_HQ_DIPLOMAT,
self::GRANTABLE_ROLES_AT_HQ_CONFIG_EQUIPMENT,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_1,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_2,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_3,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_4,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_5,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_6,
self::GRANTABLE_ROLES_AT_HQ_CONTAINER_TAKE_7,
self::GRANTABLE_ROLES_AT_HQ_RENT_OFFICE,
self::GRANTABLE_ROLES_AT_HQ_RENT_FACTORY_FACILITY,
self::GRANTABLE_ROLES_AT_HQ_RENT_RESEARCH_FACILITY,
self::GRANTABLE_ROLES_AT_HQ_JUNIOR_ACCOUNTANT,
self::GRANTABLE_ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT,
self::GRANTABLE_ROLES_AT_HQ_TRADER,
self::GRANTABLE_ROLES_AT_HQ_COMMUNICATIONS_OFFICER,
self::GRANTABLE_ROLES_AT_HQ_CONTRACT_MANAGER,
self::GRANTABLE_ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR,
self::GRANTABLE_ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN,
self::GRANTABLE_ROLES_AT_HQ_FITTING_MANAGER,
self::GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER,
self::GRANTABLE_ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function getGrantableRolesAtOtherAllowableValues()
{
return [
self::GRANTABLE_ROLES_AT_OTHER_DIRECTOR,
self::GRANTABLE_ROLES_AT_OTHER_PERSONNEL_MANAGER,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNTANT,
self::GRANTABLE_ROLES_AT_OTHER_SECURITY_OFFICER,
self::GRANTABLE_ROLES_AT_OTHER_FACTORY_MANAGER,
self::GRANTABLE_ROLES_AT_OTHER_STATION_MANAGER,
self::GRANTABLE_ROLES_AT_OTHER_AUDITOR,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_1,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_2,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_3,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_4,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_5,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_6,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_TAKE_7,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_1,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_2,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_3,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_4,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_5,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_6,
self::GRANTABLE_ROLES_AT_OTHER_HANGAR_QUERY_7,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_1,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_2,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_3,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_4,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_5,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_6,
self::GRANTABLE_ROLES_AT_OTHER_ACCOUNT_TAKE_7,
self::GRANTABLE_ROLES_AT_OTHER_DIPLOMAT,
self::GRANTABLE_ROLES_AT_OTHER_CONFIG_EQUIPMENT,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_1,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_2,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_3,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_4,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_5,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_6,
self::GRANTABLE_ROLES_AT_OTHER_CONTAINER_TAKE_7,
self::GRANTABLE_ROLES_AT_OTHER_RENT_OFFICE,
self::GRANTABLE_ROLES_AT_OTHER_RENT_FACTORY_FACILITY,
self::GRANTABLE_ROLES_AT_OTHER_RENT_RESEARCH_FACILITY,
self::GRANTABLE_ROLES_AT_OTHER_JUNIOR_ACCOUNTANT,
self::GRANTABLE_ROLES_AT_OTHER_CONFIG_STARBASE_EQUIPMENT,
self::GRANTABLE_ROLES_AT_OTHER_TRADER,
self::GRANTABLE_ROLES_AT_OTHER_COMMUNICATIONS_OFFICER,
self::GRANTABLE_ROLES_AT_OTHER_CONTRACT_MANAGER,
self::GRANTABLE_ROLES_AT_OTHER_STARBASE_DEFENSE_OPERATOR,
self::GRANTABLE_ROLES_AT_OTHER_STARBASE_FUEL_TECHNICIAN,
self::GRANTABLE_ROLES_AT_OTHER_FITTING_MANAGER,
self::GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_COMBAT_OFFICER,
self::GRANTABLE_ROLES_AT_OTHER_TERRESTRIAL_LOGISTICS_OFFICER,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function getRolesAllowableValues()
{
return [
self::ROLES_DIRECTOR,
self::ROLES_PERSONNEL_MANAGER,
self::ROLES_ACCOUNTANT,
self::ROLES_SECURITY_OFFICER,
self::ROLES_FACTORY_MANAGER,
self::ROLES_STATION_MANAGER,
self::ROLES_AUDITOR,
self::ROLES_HANGAR_TAKE_1,
self::ROLES_HANGAR_TAKE_2,
self::ROLES_HANGAR_TAKE_3,
self::ROLES_HANGAR_TAKE_4,
self::ROLES_HANGAR_TAKE_5,
self::ROLES_HANGAR_TAKE_6,
self::ROLES_HANGAR_TAKE_7,
self::ROLES_HANGAR_QUERY_1,
self::ROLES_HANGAR_QUERY_2,
self::ROLES_HANGAR_QUERY_3,
self::ROLES_HANGAR_QUERY_4,
self::ROLES_HANGAR_QUERY_5,
self::ROLES_HANGAR_QUERY_6,
self::ROLES_HANGAR_QUERY_7,
self::ROLES_ACCOUNT_TAKE_1,
self::ROLES_ACCOUNT_TAKE_2,
self::ROLES_ACCOUNT_TAKE_3,
self::ROLES_ACCOUNT_TAKE_4,
self::ROLES_ACCOUNT_TAKE_5,
self::ROLES_ACCOUNT_TAKE_6,
self::ROLES_ACCOUNT_TAKE_7,
self::ROLES_DIPLOMAT,
self::ROLES_CONFIG_EQUIPMENT,
self::ROLES_CONTAINER_TAKE_1,
self::ROLES_CONTAINER_TAKE_2,
self::ROLES_CONTAINER_TAKE_3,
self::ROLES_CONTAINER_TAKE_4,
self::ROLES_CONTAINER_TAKE_5,
self::ROLES_CONTAINER_TAKE_6,
self::ROLES_CONTAINER_TAKE_7,
self::ROLES_RENT_OFFICE,
self::ROLES_RENT_FACTORY_FACILITY,
self::ROLES_RENT_RESEARCH_FACILITY,
self::ROLES_JUNIOR_ACCOUNTANT,
self::ROLES_CONFIG_STARBASE_EQUIPMENT,
self::ROLES_TRADER,
self::ROLES_COMMUNICATIONS_OFFICER,
self::ROLES_CONTRACT_MANAGER,
self::ROLES_STARBASE_DEFENSE_OPERATOR,
self::ROLES_STARBASE_FUEL_TECHNICIAN,
self::ROLES_FITTING_MANAGER,
self::ROLES_TERRESTRIAL_COMBAT_OFFICER,
self::ROLES_TERRESTRIAL_LOGISTICS_OFFICER,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function getRolesAtHqAllowableValues()
{
return [
self::ROLES_AT_HQ_DIRECTOR,
self::ROLES_AT_HQ_PERSONNEL_MANAGER,
self::ROLES_AT_HQ_ACCOUNTANT,
self::ROLES_AT_HQ_SECURITY_OFFICER,
self::ROLES_AT_HQ_FACTORY_MANAGER,
self::ROLES_AT_HQ_STATION_MANAGER,
self::ROLES_AT_HQ_AUDITOR,
self::ROLES_AT_HQ_HANGAR_TAKE_1,
self::ROLES_AT_HQ_HANGAR_TAKE_2,
self::ROLES_AT_HQ_HANGAR_TAKE_3,
self::ROLES_AT_HQ_HANGAR_TAKE_4,
self::ROLES_AT_HQ_HANGAR_TAKE_5,
self::ROLES_AT_HQ_HANGAR_TAKE_6,
self::ROLES_AT_HQ_HANGAR_TAKE_7,
self::ROLES_AT_HQ_HANGAR_QUERY_1,
self::ROLES_AT_HQ_HANGAR_QUERY_2,
self::ROLES_AT_HQ_HANGAR_QUERY_3,
self::ROLES_AT_HQ_HANGAR_QUERY_4,
self::ROLES_AT_HQ_HANGAR_QUERY_5,
self::ROLES_AT_HQ_HANGAR_QUERY_6,
self::ROLES_AT_HQ_HANGAR_QUERY_7,
self::ROLES_AT_HQ_ACCOUNT_TAKE_1,
self::ROLES_AT_HQ_ACCOUNT_TAKE_2,
self::ROLES_AT_HQ_ACCOUNT_TAKE_3,
self::ROLES_AT_HQ_ACCOUNT_TAKE_4,
self::ROLES_AT_HQ_ACCOUNT_TAKE_5,
self::ROLES_AT_HQ_ACCOUNT_TAKE_6,
self::ROLES_AT_HQ_ACCOUNT_TAKE_7,
self::ROLES_AT_HQ_DIPLOMAT,
self::ROLES_AT_HQ_CONFIG_EQUIPMENT,
self::ROLES_AT_HQ_CONTAINER_TAKE_1,
self::ROLES_AT_HQ_CONTAINER_TAKE_2,
self::ROLES_AT_HQ_CONTAINER_TAKE_3,
self::ROLES_AT_HQ_CONTAINER_TAKE_4,
self::ROLES_AT_HQ_CONTAINER_TAKE_5,
self::ROLES_AT_HQ_CONTAINER_TAKE_6,
self::ROLES_AT_HQ_CONTAINER_TAKE_7,
self::ROLES_AT_HQ_RENT_OFFICE,
self::ROLES_AT_HQ_RENT_FACTORY_FACILITY,
self::ROLES_AT_HQ_RENT_RESEARCH_FACILITY,
self::ROLES_AT_HQ_JUNIOR_ACCOUNTANT,
self::ROLES_AT_HQ_CONFIG_STARBASE_EQUIPMENT,
self::ROLES_AT_HQ_TRADER,
self::ROLES_AT_HQ_COMMUNICATIONS_OFFICER,
self::ROLES_AT_HQ_CONTRACT_MANAGER,
self::ROLES_AT_HQ_STARBASE_DEFENSE_OPERATOR,
self::ROLES_AT_HQ_STARBASE_FUEL_TECHNICIAN,
self::ROLES_AT_HQ_FITTING_MANAGER,
self::ROLES_AT_HQ_TERRESTRIAL_COMBAT_OFFICER,
self::ROLES_AT_HQ_TERRESTRIAL_LOGISTICS_OFFICER,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function setGrantableRoles($grantableRoles)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($grantableRoles) && (array_diff($grantableRoles, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'grantableRoles', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['grantableRoles'] = $grantableRoles;
return $this;
} | Sets grantableRoles
@param string[] $grantableRoles grantable_roles array
@return $this | entailment |
public function setGrantableRolesAtBase($grantableRolesAtBase)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($grantableRolesAtBase) && (array_diff($grantableRolesAtBase, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'grantableRolesAtBase', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['grantableRolesAtBase'] = $grantableRolesAtBase;
return $this;
} | Sets grantableRolesAtBase
@param string[] $grantableRolesAtBase grantable_roles_at_base array
@return $this | entailment |
public function setGrantableRolesAtHq($grantableRolesAtHq)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($grantableRolesAtHq) && (array_diff($grantableRolesAtHq, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'grantableRolesAtHq', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['grantableRolesAtHq'] = $grantableRolesAtHq;
return $this;
} | Sets grantableRolesAtHq
@param string[] $grantableRolesAtHq grantable_roles_at_hq array
@return $this | entailment |
public function setGrantableRolesAtOther($grantableRolesAtOther)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($grantableRolesAtOther) && (array_diff($grantableRolesAtOther, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'grantableRolesAtOther', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['grantableRolesAtOther'] = $grantableRolesAtOther;
return $this;
} | Sets grantableRolesAtOther
@param string[] $grantableRolesAtOther grantable_roles_at_other array
@return $this | entailment |
public function setRoles($roles)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($roles) && (array_diff($roles, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'roles', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['roles'] = $roles;
return $this;
} | Sets roles
@param string[] $roles roles array
@return $this | entailment |
public function setRolesAtBase($rolesAtBase)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($rolesAtBase) && (array_diff($rolesAtBase, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'rolesAtBase', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['rolesAtBase'] = $rolesAtBase;
return $this;
} | Sets rolesAtBase
@param string[] $rolesAtBase roles_at_base array
@return $this | entailment |
public function setRolesAtHq($rolesAtHq)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($rolesAtHq) && (array_diff($rolesAtHq, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'rolesAtHq', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['rolesAtHq'] = $rolesAtHq;
return $this;
} | Sets rolesAtHq
@param string[] $rolesAtHq roles_at_hq array
@return $this | entailment |
public function setRolesAtOther($rolesAtOther)
{
$allowed_values = array('Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer');
if (!is_null($rolesAtOther) && (array_diff($rolesAtOther, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'rolesAtOther', must be one of 'Director', 'Personnel_Manager', 'Accountant', 'Security_Officer', 'Factory_Manager', 'Station_Manager', 'Auditor', 'Hangar_Take_1', 'Hangar_Take_2', 'Hangar_Take_3', 'Hangar_Take_4', 'Hangar_Take_5', 'Hangar_Take_6', 'Hangar_Take_7', 'Hangar_Query_1', 'Hangar_Query_2', 'Hangar_Query_3', 'Hangar_Query_4', 'Hangar_Query_5', 'Hangar_Query_6', 'Hangar_Query_7', 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Diplomat', 'Config_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Rent_Office', 'Rent_Factory_Facility', 'Rent_Research_Facility', 'Junior_Accountant', 'Config_Starbase_Equipment', 'Trader', 'Communications_Officer', 'Contract_Manager', 'Starbase_Defense_Operator', 'Starbase_Fuel_Technician', 'Fitting_Manager', 'Terrestrial_Combat_Officer', 'Terrestrial_Logistics_Officer'");
}
$this->container['rolesAtOther'] = $rolesAtOther;
return $this;
} | Sets rolesAtOther
@param string[] $rolesAtOther roles_at_other array
@return $this | entailment |
public function save($key, $ttl)
{
$fileName = $this->getFileName($key);
if (!@file_put_contents($fileName, time() + $ttl)) {
return false;
}
return true;
} | {@inheritdoc} | entailment |
public function delete($key)
{
$fileName = $this->getFileName($key);
if (!file_exists($fileName)) {
return true;
}
if (!@unlink($fileName)) {
return false;
}
return true;
} | {@inheritdoc} | entailment |
public function exists($key)
{
$fileName = $this->getFileName($key);
if (!file_exists($fileName)) {
return false;
}
$content = file_get_contents($fileName);
return time() <= $content;
} | {@inheritdoc} | entailment |
protected function __parseRanges()
{
if (isset($this->__meta["labelRange"]) && is_array($this->__meta["labelRange"])) {
if (isset($this->__meta["valueRange"]) && is_array($this->__meta["valueRange"]) && count($this->__meta["labelRange"]) == count($this->__meta["valueRange"])) {
$intIndex = 0;
foreach ($this->__meta["labelRange"] as $strLabel) {
$this->addField($strLabel, $this->__meta["valueRange"][$intIndex]);
$intIndex ++;
}
} else {
foreach ($this->__meta["labelRange"] as $strLabel) {
$this->addField($strLabel, $strLabel);
}
}
} elseif (isset($this->__meta["start"]) && is_numeric($this->__meta["start"]) && isset($this->__meta["end"]) && is_numeric($this->__meta["end"])) {
if ($this->__meta["start"] < $this->__meta["end"]) {
for ($intIndex = $this->__meta["start"]; $intIndex <= $this->__meta["end"]; $intIndex ++) {
$this->addField($intIndex, $intIndex);
}
} else {
for ($intIndex = $this->__meta["start"]; $intIndex >= $this->__meta["end"]; $intIndex --) {
$this->addField($intIndex, $intIndex);
}
}
}
} | Generate ranges
Supported meta keys for ranges:
- labelRange
- valueRange
- start
- end | entailment |
public function addField($label, $value, $selected = false, $meta = array())
{
$objOption = new SelectOption($label, $value, $selected, $meta);
$objOption->setMeta("parent", $this, true);
$this->__options->addObject($objOption);
return $objOption;
} | Add option element
@param string $label The option elements label
@param string $value The option elements value
@param boolean $selected True if this option should be selected by default
@param array $meta The meta array
@return \ValidFormBuilder\SelectOption | entailment |
public function addGroup($label)
{
$objGroup = new SelectGroup($label);
$objGroup->setMeta("parent", $this, true);
$this->__options->addObject($objGroup);
return $objGroup;
} | Add optgroup element
@param string $label The optgroup's label
@return \ValidFormBuilder\SelectGroup | entailment |
public function loadData(string $table, string $fname, array $fields, string $mode): string
{
$fields = implode(', ', $fields);
if ($this->pretend === false) {
if ($mode === 'update') {
$this->conn->query("TRUNCATE {$table}");
}
$pdo = $this->conn->getWrappedConnection();
$pdo->pgsqlCopyFromFile($table, $fname, '|', '\\\\N', $fields);
}
$sql = "COPY {$table} ($fields) FROM '{$fname}' ";
$sql.= '... Managed by pgsqlCopyFromFile';
return $sql;
} | {@inheritdoc} | entailment |
public function setLocationType($locationType)
{
$allowed_values = array('station', 'structure');
if (!is_null($locationType) && (!in_array($locationType, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'locationType', must be one of 'station', 'structure'");
}
$this->container['locationType'] = $locationType;
return $this;
} | Sets locationType
@param string $locationType location_type string
@return $this | entailment |
public function setRole($role)
{
$allowedValues = $this->getRoleAllowableValues();
if (!in_array($role, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'role', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['role'] = $role;
return $this;
} | Sets role
@param string $role Member’s role in fleet
@return $this | entailment |
public function getCharactersCharacterIdSearch($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdSearchWithHttpInfo($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdSearch
Search on a string
@param string[] $categories Type of entities to search for (required)
@param int $characterId An EVE character ID (required)
@param string $search The string to search on (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param bool $strict Whether the search should be a strict match (optional, default to false)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetCharactersCharacterIdSearchOk | entailment |
public function getCharactersCharacterIdSearchAsync($categories, $characterId, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdSearchAsyncWithHttpInfo($categories, $characterId, $search, $datasource, $language, $strict, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getCharactersCharacterIdSearchAsync
Search on a string
@param string[] $categories Type of entities to search for (required)
@param int $characterId An EVE character ID (required)
@param string $search The string to search on (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param bool $strict Whether the search should be a strict match (optional, default to false)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getSearchAsync($categories, $search, $datasource = 'tranquility', $language = 'en-us', $strict = 'false', $userAgent = null, $xUserAgent = null)
{
return $this->getSearchAsyncWithHttpInfo($categories, $search, $datasource, $language, $strict, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getSearchAsync
Search on a string
@param string[] $categories Type of entities to search for (required)
@param string $search The string to search on (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $language Language to use in the response (optional, default to en-us)
@param bool $strict Whether the search should be a strict match (optional, default to false)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getRefTypeAllowableValues()
{
return [
self::REF_TYPE_ACCELERATION_GATE_FEE,
self::REF_TYPE_ADVERTISEMENT_LISTING_FEE,
self::REF_TYPE_AGENT_DONATION,
self::REF_TYPE_AGENT_LOCATION_SERVICES,
self::REF_TYPE_AGENT_MISCELLANEOUS,
self::REF_TYPE_AGENT_MISSION_COLLATERAL_PAID,
self::REF_TYPE_AGENT_MISSION_COLLATERAL_REFUNDED,
self::REF_TYPE_AGENT_MISSION_REWARD,
self::REF_TYPE_AGENT_MISSION_REWARD_CORPORATION_TAX,
self::REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD,
self::REF_TYPE_AGENT_MISSION_TIME_BONUS_REWARD_CORPORATION_TAX,
self::REF_TYPE_AGENT_SECURITY_SERVICES,
self::REF_TYPE_AGENT_SERVICES_RENDERED,
self::REF_TYPE_AGENTS_PREWARD,
self::REF_TYPE_ALLIANCE_MAINTAINANCE_FEE,
self::REF_TYPE_ALLIANCE_REGISTRATION_FEE,
self::REF_TYPE_ASSET_SAFETY_RECOVERY_TAX,
self::REF_TYPE_BOUNTY,
self::REF_TYPE_BOUNTY_PRIZE,
self::REF_TYPE_BOUNTY_PRIZE_CORPORATION_TAX,
self::REF_TYPE_BOUNTY_PRIZES,
self::REF_TYPE_BOUNTY_REIMBURSEMENT,
self::REF_TYPE_BOUNTY_SURCHARGE,
self::REF_TYPE_BROKERS_FEE,
self::REF_TYPE_CLONE_ACTIVATION,
self::REF_TYPE_CLONE_TRANSFER,
self::REF_TYPE_CONTRABAND_FINE,
self::REF_TYPE_CONTRACT_AUCTION_BID,
self::REF_TYPE_CONTRACT_AUCTION_BID_CORP,
self::REF_TYPE_CONTRACT_AUCTION_BID_REFUND,
self::REF_TYPE_CONTRACT_AUCTION_SOLD,
self::REF_TYPE_CONTRACT_BROKERS_FEE,
self::REF_TYPE_CONTRACT_BROKERS_FEE_CORP,
self::REF_TYPE_CONTRACT_COLLATERAL,
self::REF_TYPE_CONTRACT_COLLATERAL_DEPOSITED_CORP,
self::REF_TYPE_CONTRACT_COLLATERAL_PAYOUT,
self::REF_TYPE_CONTRACT_COLLATERAL_REFUND,
self::REF_TYPE_CONTRACT_DEPOSIT,
self::REF_TYPE_CONTRACT_DEPOSIT_CORP,
self::REF_TYPE_CONTRACT_DEPOSIT_REFUND,
self::REF_TYPE_CONTRACT_DEPOSIT_SALES_TAX,
self::REF_TYPE_CONTRACT_PRICE,
self::REF_TYPE_CONTRACT_PRICE_PAYMENT_CORP,
self::REF_TYPE_CONTRACT_REVERSAL,
self::REF_TYPE_CONTRACT_REWARD,
self::REF_TYPE_CONTRACT_REWARD_DEPOSITED,
self::REF_TYPE_CONTRACT_REWARD_DEPOSITED_CORP,
self::REF_TYPE_CONTRACT_REWARD_REFUND,
self::REF_TYPE_CONTRACT_SALES_TAX,
self::REF_TYPE_COPYING,
self::REF_TYPE_CORPORATE_REWARD_PAYOUT,
self::REF_TYPE_CORPORATE_REWARD_TAX,
self::REF_TYPE_CORPORATION_ACCOUNT_WITHDRAWAL,
self::REF_TYPE_CORPORATION_BULK_PAYMENT,
self::REF_TYPE_CORPORATION_DIVIDEND_PAYMENT,
self::REF_TYPE_CORPORATION_LIQUIDATION,
self::REF_TYPE_CORPORATION_LOGO_CHANGE_COST,
self::REF_TYPE_CORPORATION_PAYMENT,
self::REF_TYPE_CORPORATION_REGISTRATION_FEE,
self::REF_TYPE_COURIER_MISSION_ESCROW,
self::REF_TYPE_CSPA,
self::REF_TYPE_CSPAOFFLINEREFUND,
self::REF_TYPE_DATACORE_FEE,
self::REF_TYPE_DNA_MODIFICATION_FEE,
self::REF_TYPE_DOCKING_FEE,
self::REF_TYPE_DUEL_WAGER_ESCROW,
self::REF_TYPE_DUEL_WAGER_PAYMENT,
self::REF_TYPE_DUEL_WAGER_REFUND,
self::REF_TYPE_FACTORY_SLOT_RENTAL_FEE,
self::REF_TYPE_GM_CASH_TRANSFER,
self::REF_TYPE_INDUSTRY_JOB_TAX,
self::REF_TYPE_INFRASTRUCTURE_HUB_MAINTENANCE,
self::REF_TYPE_INHERITANCE,
self::REF_TYPE_INSURANCE,
self::REF_TYPE_JUMP_CLONE_ACTIVATION_FEE,
self::REF_TYPE_JUMP_CLONE_INSTALLATION_FEE,
self::REF_TYPE_KILL_RIGHT_FEE,
self::REF_TYPE_LP_STORE,
self::REF_TYPE_MANUFACTURING,
self::REF_TYPE_MARKET_ESCROW,
self::REF_TYPE_MARKET_FINE_PAID,
self::REF_TYPE_MARKET_TRANSACTION,
self::REF_TYPE_MEDAL_CREATION,
self::REF_TYPE_MEDAL_ISSUED,
self::REF_TYPE_MISSION_COMPLETION,
self::REF_TYPE_MISSION_COST,
self::REF_TYPE_MISSION_EXPIRATION,
self::REF_TYPE_MISSION_REWARD,
self::REF_TYPE_OFFICE_RENTAL_FEE,
self::REF_TYPE_OPERATION_BONUS,
self::REF_TYPE_OPPORTUNITY_REWARD,
self::REF_TYPE_PLANETARY_CONSTRUCTION,
self::REF_TYPE_PLANETARY_EXPORT_TAX,
self::REF_TYPE_PLANETARY_IMPORT_TAX,
self::REF_TYPE_PLAYER_DONATION,
self::REF_TYPE_PLAYER_TRADING,
self::REF_TYPE_PROJECT_DISCOVERY_REWARD,
self::REF_TYPE_PROJECT_DISCOVERY_TAX,
self::REF_TYPE_REACTION,
self::REF_TYPE_RELEASE_OF_IMPOUNDED_PROPERTY,
self::REF_TYPE_REPAIR_BILL,
self::REF_TYPE_REPROCESSING_TAX,
self::REF_TYPE_RESEARCHING_MATERIAL_PRODUCTIVITY,
self::REF_TYPE_RESEARCHING_TECHNOLOGY,
self::REF_TYPE_RESEARCHING_TIME_PRODUCTIVITY,
self::REF_TYPE_RESOURCE_WARS_REWARD,
self::REF_TYPE_REVERSE_ENGINEERING,
self::REF_TYPE_SECURITY_PROCESSING_FEE,
self::REF_TYPE_SHARES,
self::REF_TYPE_SOVEREIGNITY_BILL,
self::REF_TYPE_STORE_PURCHASE,
self::REF_TYPE_STORE_PURCHASE_REFUND,
self::REF_TYPE_TRANSACTION_TAX,
self::REF_TYPE_UPKEEP_ADJUSTMENT_FEE,
self::REF_TYPE_WAR_ALLY_CONTRACT,
self::REF_TYPE_WAR_FEE,
self::REF_TYPE_WAR_FEE_SURRENDER,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function getFirstPartyTypeAllowableValues()
{
return [
self::FIRST_PARTY_TYPE_CHARACTER,
self::FIRST_PARTY_TYPE_CORPORATION,
self::FIRST_PARTY_TYPE_ALLIANCE,
self::FIRST_PARTY_TYPE_FACTION,
self::FIRST_PARTY_TYPE_SYSTEM,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function getSecondPartyTypeAllowableValues()
{
return [
self::SECOND_PARTY_TYPE_CHARACTER,
self::SECOND_PARTY_TYPE_CORPORATION,
self::SECOND_PARTY_TYPE_ALLIANCE,
self::SECOND_PARTY_TYPE_FACTION,
self::SECOND_PARTY_TYPE_SYSTEM,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['date'] === null) {
$invalidProperties[] = "'date' can't be null";
}
if ($this->container['refId'] === null) {
$invalidProperties[] = "'refId' can't be null";
}
if ($this->container['refType'] === null) {
$invalidProperties[] = "'refType' can't be null";
}
$allowedValues = $this->getRefTypeAllowableValues();
if (!in_array($this->container['refType'], $allowedValues)) {
$invalidProperties[] = sprintf(
"invalid value for 'refType', must be one of '%s'",
implode("', '", $allowedValues)
);
}
$allowedValues = $this->getFirstPartyTypeAllowableValues();
if (!in_array($this->container['firstPartyType'], $allowedValues)) {
$invalidProperties[] = sprintf(
"invalid value for 'firstPartyType', must be one of '%s'",
implode("', '", $allowedValues)
);
}
$allowedValues = $this->getSecondPartyTypeAllowableValues();
if (!in_array($this->container['secondPartyType'], $allowedValues)) {
$invalidProperties[] = sprintf(
"invalid value for 'secondPartyType', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | entailment |
public function valid()
{
if ($this->container['date'] === null) {
return false;
}
if ($this->container['refId'] === null) {
return false;
}
if ($this->container['refType'] === null) {
return false;
}
$allowedValues = $this->getRefTypeAllowableValues();
if (!in_array($this->container['refType'], $allowedValues)) {
return false;
}
$allowedValues = $this->getFirstPartyTypeAllowableValues();
if (!in_array($this->container['firstPartyType'], $allowedValues)) {
return false;
}
$allowedValues = $this->getSecondPartyTypeAllowableValues();
if (!in_array($this->container['secondPartyType'], $allowedValues)) {
return false;
}
return true;
} | Validate all the properties in the model
return true if all passed
@return bool True if all properties are valid | entailment |
public function setRefType($refType)
{
$allowedValues = $this->getRefTypeAllowableValues();
if (!in_array($refType, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'refType', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['refType'] = $refType;
return $this;
} | Sets refType
@param string $refType Transaction type, different type of transaction will populate different fields in `extra_info` Note: If you have an existing XML API application that is using ref_types, you will need to know which string ESI ref_type maps to which integer. You can use the following gist to see string->int mappings: https://gist.github.com/ccp-zoetrope/c03db66d90c2148724c06171bc52e0ec
@return $this | entailment |
public function setFirstPartyType($firstPartyType)
{
$allowedValues = $this->getFirstPartyTypeAllowableValues();
if (!is_null($firstPartyType) && !in_array($firstPartyType, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'firstPartyType', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['firstPartyType'] = $firstPartyType;
return $this;
} | Sets firstPartyType
@param string $firstPartyType first_party_type string
@return $this | entailment |
public function setSecondPartyType($secondPartyType)
{
$allowedValues = $this->getSecondPartyTypeAllowableValues();
if (!is_null($secondPartyType) && !in_array($secondPartyType, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'secondPartyType', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['secondPartyType'] = $secondPartyType;
return $this;
} | Sets secondPartyType
@param string $secondPartyType second_party_type string
@return $this | entailment |
public static function extractHttpRoute($pattern)
{
$httpMethod = 'ALL';
$routePattern = $pattern;
if (false !== strpos($pattern, '#|#')) {
list($httpMethod, $routePattern) = explode('#|#', $pattern, 2);
}
return array(strtoupper($httpMethod), $routePattern);
} | @param $pattern
@return array | entailment |
public static function extractComponents($route, $pattern)
{
Logger::log('Extracting parts for the request to execute');
$url = parse_url(preg_replace("/\/\//", '/', $route));
$partialRoute = explode('/', $url['path']);
$partialPattern = explode('/', $pattern);
$get = [];
if (!empty($partialPattern)) {
foreach ($partialPattern as $index => $component) {
$query = [];
preg_match_all('/^\{(.*)\}$/', $component, $query);
if (!empty($query[1]) && isset($partialRoute[$index])) {
$get[array_pop($query[1])] = $partialRoute[$index];
}
}
}
return $get;
} | Método que extrae de la url los parámetros REST
@param string $route
@param string $pattern
@return array | entailment |
public static function compareSlashes($routePattern, $path)
{
$patternSeparator = count(explode('/', $routePattern));
if (preg_match('/\/$/', $routePattern)) {
$patternSeparator--;
}
$routePattern = preg_replace('/\/\{.*\}$/', '', $routePattern);
$cleanPatternSeparator = count(explode('/', $routePattern));
if (preg_match('/\/$/', $routePattern)) {
$cleanPatternSeparator--;
}
$path_sep = count(explode('/', $path));
if (preg_match('/\/$/', $path)) {
$path_sep--;
}
return abs($patternSeparator - $path_sep) < 1 || abs($cleanPatternSeparator - $path_sep) < 1;
} | Function that checks if the long of the patterns match
@param $routePattern
@param $path
@return bool | entailment |
public static function matchRoutePattern($routePattern, $path)
{
$expr = preg_replace('/\{([^}]+)\}/', '###', $routePattern);
$expr = preg_quote($expr, '/');
$expr = str_replace('###', '(.*)', $expr);
$expr2 = preg_replace('/\(\.\*\)$/', '', $expr);
$matched = preg_match('/^' . $expr . '\/?$/i', $path) || preg_match('/^' . $expr2 . '?$/i', $path);
return $matched;
} | Método que compara la ruta web con la guardada en la cache
@param $routePattern
@param $path
@return bool | entailment |
public static function extractReflectionParams($sr, \ReflectionMethod $method)
{
$regex = $sr[1] ?: $sr[0];
$default = '';
$params = [];
$parameters = $method->getParameters();
$requirements = [];
/** @var \ReflectionParameter $param */
if (count($parameters) > 0) {
foreach ($parameters as $param) {
if ($param->isOptional() && !is_array($param->getDefaultValue())) {
$params[$param->getName()] = $param->getDefaultValue();
$default = str_replace('{' . $param->getName() . '}', $param->getDefaultValue(), $regex);
} elseif(!$param->isOptional()) {
$requirements[] = $param->getName();
}
}
} else {
$default = $regex;
}
return [$regex, $default, $params, $requirements];
} | Método que extrae los parámetros de una función
@param array $sr
@param \ReflectionMethod $method
@return array | entailment |
public static function extractReflectionVisibility($docComments)
{
preg_match('/@visible\ (.*)(\n|\r)/i', $docComments, $visible);
return !(array_key_exists(1, $visible) && false !== strpos($visible[1], 'false'));
} | Método que extrae la visibilidad de una ruta
@param string $docComments
@return bool | entailment |
public function getServicesAllowableValues()
{
return [
self::SERVICES_BOUNTY_MISSIONS,
self::SERVICES_ASSASINATION_MISSIONS,
self::SERVICES_COURIER_MISSIONS,
self::SERVICES_INTERBUS,
self::SERVICES_REPROCESSING_PLANT,
self::SERVICES_REFINERY,
self::SERVICES_MARKET,
self::SERVICES_BLACK_MARKET,
self::SERVICES_STOCK_EXCHANGE,
self::SERVICES_CLONING,
self::SERVICES_SURGERY,
self::SERVICES_DNA_THERAPY,
self::SERVICES_REPAIR_FACILITIES,
self::SERVICES_FACTORY,
self::SERVICES_LABRATORY,
self::SERVICES_GAMBLING,
self::SERVICES_FITTING,
self::SERVICES_PAINTSHOP,
self::SERVICES_NEWS,
self::SERVICES_STORAGE,
self::SERVICES_INSURANCE,
self::SERVICES_DOCKING,
self::SERVICES_OFFICE_RENTAL,
self::SERVICES_JUMP_CLONE_FACILITY,
self::SERVICES_LOYALTY_POINT_STORE,
self::SERVICES_NAVY_OFFICES,
self::SERVICES_SECURITY_OFFICES,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function setServices($services)
{
$allowedValues = $this->getServicesAllowableValues();
if (array_diff($services, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'services', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['services'] = $services;
return $this;
} | Sets services
@param string[] $services services array
@return $this | entailment |
public static function getDBHelper(string $driver): string
{
$drivers = [
'pdo_mysql' => MySQL::class,
'mysql' => MySQL::class,
'mysql2' => MySQL::class,
'pdo_pgsql' => PostgreSQL::class,
'pgsql' => PostgreSQL::class,
'postgres' => PostgreSQL::class,
'postgresql' => PostgreSQL::class,
'pdo_sqlsrv' => SQLServer::class,
'mssql' => SQLServer::class,
];
if (!array_key_exists($driver, $drivers)) {
throw new \InvalidArgumentException("$driver unknown");
}
return $drivers[$driver];
} | Find the right local driver from a php extension
@param string $driver
@throws \InvalidArgumentException
@return string | entailment |
public function evaluateExpression(string $expression)
{
$expressionLanguage = new ExpressionLanguage();
return $expressionLanguage->evaluate($expression, $this->services);
} | Evaluate an expression that would be in the most general case
an action coming from an Anonymization config
@param string $expression
@return mixed | entailment |
public function evaluateExpressions(array $expressions): array
{
$res = [];
foreach ($expressions as $expression) {
$res[] = $this->evaluateExpression($expression);
}
return $res;
} | Evaluate a list of expression
@param array $expressions
@return array | entailment |
private function configure(): void
{
$services = array_keys($this->container->findTaggedServiceIds('app.service'));
foreach ($services as $service) {
$service = $this->container->get($service);
$this->services[$service->getName()] = $service;
}
} | Configure that service by registering all services in an array
@return void | entailment |
public function getCharactersCharacterIdClones($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdClonesWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdClones
Get clones
@param int $characterId An EVE character ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetCharactersCharacterIdClonesOk | entailment |
public function getCharactersCharacterIdClonesAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdClonesAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getCharactersCharacterIdClonesAsync
Get clones
@param int $characterId An EVE character ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getCharactersCharacterIdImplants($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdImplantsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdImplants
Get active implants
@param int $characterId An EVE character ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return int[] | entailment |
public function getCharactersCharacterIdImplantsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdImplantsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getCharactersCharacterIdImplantsAsync
Get active implants
@param int $characterId An EVE character ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getLocationFlagAllowableValues()
{
return [
self::LOCATION_FLAG_AUTO_FIT,
self::LOCATION_FLAG_CARGO,
self::LOCATION_FLAG_CORPSE_BAY,
self::LOCATION_FLAG_DRONE_BAY,
self::LOCATION_FLAG_FLEET_HANGAR,
self::LOCATION_FLAG_DELIVERIES,
self::LOCATION_FLAG_HIDDEN_MODIFIERS,
self::LOCATION_FLAG_HANGAR,
self::LOCATION_FLAG_HANGAR_ALL,
self::LOCATION_FLAG_LO_SLOT0,
self::LOCATION_FLAG_LO_SLOT1,
self::LOCATION_FLAG_LO_SLOT2,
self::LOCATION_FLAG_LO_SLOT3,
self::LOCATION_FLAG_LO_SLOT4,
self::LOCATION_FLAG_LO_SLOT5,
self::LOCATION_FLAG_LO_SLOT6,
self::LOCATION_FLAG_LO_SLOT7,
self::LOCATION_FLAG_MED_SLOT0,
self::LOCATION_FLAG_MED_SLOT1,
self::LOCATION_FLAG_MED_SLOT2,
self::LOCATION_FLAG_MED_SLOT3,
self::LOCATION_FLAG_MED_SLOT4,
self::LOCATION_FLAG_MED_SLOT5,
self::LOCATION_FLAG_MED_SLOT6,
self::LOCATION_FLAG_MED_SLOT7,
self::LOCATION_FLAG_HI_SLOT0,
self::LOCATION_FLAG_HI_SLOT1,
self::LOCATION_FLAG_HI_SLOT2,
self::LOCATION_FLAG_HI_SLOT3,
self::LOCATION_FLAG_HI_SLOT4,
self::LOCATION_FLAG_HI_SLOT5,
self::LOCATION_FLAG_HI_SLOT6,
self::LOCATION_FLAG_HI_SLOT7,
self::LOCATION_FLAG_ASSET_SAFETY,
self::LOCATION_FLAG_LOCKED,
self::LOCATION_FLAG_UNLOCKED,
self::LOCATION_FLAG_IMPLANT,
self::LOCATION_FLAG_QUAFE_BAY,
self::LOCATION_FLAG_RIG_SLOT0,
self::LOCATION_FLAG_RIG_SLOT1,
self::LOCATION_FLAG_RIG_SLOT2,
self::LOCATION_FLAG_RIG_SLOT3,
self::LOCATION_FLAG_RIG_SLOT4,
self::LOCATION_FLAG_RIG_SLOT5,
self::LOCATION_FLAG_RIG_SLOT6,
self::LOCATION_FLAG_RIG_SLOT7,
self::LOCATION_FLAG_SHIP_HANGAR,
self::LOCATION_FLAG_SPECIALIZED_FUEL_BAY,
self::LOCATION_FLAG_SPECIALIZED_ORE_HOLD,
self::LOCATION_FLAG_SPECIALIZED_GAS_HOLD,
self::LOCATION_FLAG_SPECIALIZED_MINERAL_HOLD,
self::LOCATION_FLAG_SPECIALIZED_SALVAGE_HOLD,
self::LOCATION_FLAG_SPECIALIZED_SHIP_HOLD,
self::LOCATION_FLAG_SPECIALIZED_SMALL_SHIP_HOLD,
self::LOCATION_FLAG_SPECIALIZED_MEDIUM_SHIP_HOLD,
self::LOCATION_FLAG_SPECIALIZED_LARGE_SHIP_HOLD,
self::LOCATION_FLAG_SPECIALIZED_INDUSTRIAL_SHIP_HOLD,
self::LOCATION_FLAG_SPECIALIZED_AMMO_HOLD,
self::LOCATION_FLAG_SPECIALIZED_COMMAND_CENTER_HOLD,
self::LOCATION_FLAG_SPECIALIZED_PLANETARY_COMMODITIES_HOLD,
self::LOCATION_FLAG_SPECIALIZED_MATERIAL_BAY,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT0,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT1,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT2,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT3,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT4,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT5,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT6,
self::LOCATION_FLAG_SUB_SYSTEM_SLOT7,
self::LOCATION_FLAG_FIGHTER_BAY,
self::LOCATION_FLAG_FIGHTER_TUBE0,
self::LOCATION_FLAG_FIGHTER_TUBE1,
self::LOCATION_FLAG_FIGHTER_TUBE2,
self::LOCATION_FLAG_FIGHTER_TUBE3,
self::LOCATION_FLAG_FIGHTER_TUBE4,
self::LOCATION_FLAG_MODULE,
];
} | Gets allowable values of the enum
@return string[] | entailment |
public function setLocationFlag($locationFlag)
{
$allowed_values = array('AutoFit', 'Cargo', 'CorpseBay', 'DroneBay', 'FleetHangar', 'Deliveries', 'HiddenModifiers', 'Hangar', 'HangarAll', 'LoSlot0', 'LoSlot1', 'LoSlot2', 'LoSlot3', 'LoSlot4', 'LoSlot5', 'LoSlot6', 'LoSlot7', 'MedSlot0', 'MedSlot1', 'MedSlot2', 'MedSlot3', 'MedSlot4', 'MedSlot5', 'MedSlot6', 'MedSlot7', 'HiSlot0', 'HiSlot1', 'HiSlot2', 'HiSlot3', 'HiSlot4', 'HiSlot5', 'HiSlot6', 'HiSlot7', 'AssetSafety', 'Locked', 'Unlocked', 'Implant', 'QuafeBay', 'RigSlot0', 'RigSlot1', 'RigSlot2', 'RigSlot3', 'RigSlot4', 'RigSlot5', 'RigSlot6', 'RigSlot7', 'ShipHangar', 'SpecializedFuelBay', 'SpecializedOreHold', 'SpecializedGasHold', 'SpecializedMineralHold', 'SpecializedSalvageHold', 'SpecializedShipHold', 'SpecializedSmallShipHold', 'SpecializedMediumShipHold', 'SpecializedLargeShipHold', 'SpecializedIndustrialShipHold', 'SpecializedAmmoHold', 'SpecializedCommandCenterHold', 'SpecializedPlanetaryCommoditiesHold', 'SpecializedMaterialBay', 'SubSystemSlot0', 'SubSystemSlot1', 'SubSystemSlot2', 'SubSystemSlot3', 'SubSystemSlot4', 'SubSystemSlot5', 'SubSystemSlot6', 'SubSystemSlot7', 'FighterBay', 'FighterTube0', 'FighterTube1', 'FighterTube2', 'FighterTube3', 'FighterTube4', 'Module');
if ((!in_array($locationFlag, $allowed_values))) {
throw new \InvalidArgumentException("Invalid value for 'locationFlag', must be one of 'AutoFit', 'Cargo', 'CorpseBay', 'DroneBay', 'FleetHangar', 'Deliveries', 'HiddenModifiers', 'Hangar', 'HangarAll', 'LoSlot0', 'LoSlot1', 'LoSlot2', 'LoSlot3', 'LoSlot4', 'LoSlot5', 'LoSlot6', 'LoSlot7', 'MedSlot0', 'MedSlot1', 'MedSlot2', 'MedSlot3', 'MedSlot4', 'MedSlot5', 'MedSlot6', 'MedSlot7', 'HiSlot0', 'HiSlot1', 'HiSlot2', 'HiSlot3', 'HiSlot4', 'HiSlot5', 'HiSlot6', 'HiSlot7', 'AssetSafety', 'Locked', 'Unlocked', 'Implant', 'QuafeBay', 'RigSlot0', 'RigSlot1', 'RigSlot2', 'RigSlot3', 'RigSlot4', 'RigSlot5', 'RigSlot6', 'RigSlot7', 'ShipHangar', 'SpecializedFuelBay', 'SpecializedOreHold', 'SpecializedGasHold', 'SpecializedMineralHold', 'SpecializedSalvageHold', 'SpecializedShipHold', 'SpecializedSmallShipHold', 'SpecializedMediumShipHold', 'SpecializedLargeShipHold', 'SpecializedIndustrialShipHold', 'SpecializedAmmoHold', 'SpecializedCommandCenterHold', 'SpecializedPlanetaryCommoditiesHold', 'SpecializedMaterialBay', 'SubSystemSlot0', 'SubSystemSlot1', 'SubSystemSlot2', 'SubSystemSlot3', 'SubSystemSlot4', 'SubSystemSlot5', 'SubSystemSlot6', 'SubSystemSlot7', 'FighterBay', 'FighterTube0', 'FighterTube1', 'FighterTube2', 'FighterTube3', 'FighterTube4', 'Module'");
}
$this->container['locationFlag'] = $locationFlag;
return $this;
} | Sets locationFlag
@param string $locationFlag Indicates something about this item's storage location. The flag is used to differentiate between hangar divisions, drone bay, fitting location, and similar.
@return $this | entailment |
protected function execute(InputInterface $input, OutputInterface $output): void
{
$dumper = new \Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper;
$config = $dumper->dump(
new \Edyan\Neuralyzer\Configuration\ConfigDefinition
);
$output->writeLn($config);
} | Execute the command
@param InputInterface $input
@param OutputInterface $output
@return void | entailment |
public function phar($opts = ['neuralyzer-version' => 'dev'])
{
if ((int)ini_get('phar.readonly') === 1) {
throw new \RuntimeException(
'You must have phar.readonly = 1 or run' . PHP_EOL .
'php -d phar.readonly=0 vendor/bin/robo (phar|release)'
);
}
// Create a collection builder to hold the temporary
// directory until the pack phar task runs.Call to undefined method RoboFile::startProgressIndicator()
$collection = $this->collectionBuilder();
$workDir = $collection->tmpDir();
$buildDir = "$workDir/neuralyzer";
$prepTasks = $this->collectionBuilder();
$preparationResult = $prepTasks
->taskFilesystemStack()
->mkdir($workDir)
->taskCopyDir([__DIR__ . '/src' => $buildDir . '/src'])
->taskFilesystemStack()
->copy(__DIR__ . '/bin/neuralyzer', $buildDir . '/bin/neuralyzer')
->copy(__DIR__ . '/composer.json', $buildDir . '/composer.json')
->copy(__DIR__ . '/composer.lock', $buildDir . '/composer.lock')
->copy(__DIR__ . '/LICENSE', $buildDir . '/LICENSE')
->copy(__DIR__ . '/README.md', $buildDir . '/README.md')
->taskComposerInstall()
->dir($buildDir)
->noDev()
->noScripts()
->printOutput(true)
->optimizeAutoloader()
->run();
// Exit if the preparation step failed
if (!$preparationResult->wasSuccessful()) {
return $preparationResult;
}
$currentVersion = \Edyan\Neuralyzer\Console\Application::VERSION;
$this->say("Setting version number to {$opts['neuralyzer-version']}");
$this->taskReplaceInFile($buildDir . '/src/Console/Application.php')
->from("const VERSION = '$currentVersion';")
->to("const VERSION = '{$opts['neuralyzer-version']}';")
->run();
$this->say("Force Robo to compress up to 1500 files in a phar");
$this->taskReplaceInFile(__DIR__ . '/vendor/consolidation/robo/src/Task/Development/PackPhar.php')
->from('if (count($this->files) > 1000)')
->to('if (count($this->files) > 1500)')
->run();
// Decide which files we're going to pack
$files = \Symfony\Component\Finder\Finder::create()
->ignoreVCS(true)
->files()
->name('*.php')
->name('*.exe') // for symfony/console/Resources/bin/hiddeninput.exe
->path('src')
->path('vendor')
->notPath('docs')
->notPath('/vendor\/.*\/[Tt]est/')
// incomplete and need to reduce for phar compression
//->notPath('ro_MD')
//->notPath('sr_Cyrl_RS')
//->notPath('sr_Latn_RS')
->in(is_dir($buildDir) ? $buildDir : __DIR__);
$fakerLang = \Symfony\Component\Finder\Finder::create()
->ignoreVCS(true)
->files()
->name('*')
->path('src/Faker/Dictionary')
->in(is_dir($buildDir) ? $buildDir : __DIR__);
// Build the phar
return $collection
->taskPackPhar('neuralyzer.phar')
->compress()
->addFile('bin/neuralyzer', 'bin/neuralyzer')
->addFile('config/services.yml', 'config/services.yml')
->addFiles($files)
->addFiles($fakerLang)
->executable('bin/neuralyzer')
->taskFilesystemStack()
->chmod(__DIR__ . '/neuralyzer.phar', 0755)
->run();
} | Build an executable phar | entailment |
public function listInvalidProperties()
{
$invalidProperties = [];
if ($this->container['bloodlineId'] === null) {
$invalidProperties[] = "'bloodlineId' can't be null";
}
if ($this->container['name'] === null) {
$invalidProperties[] = "'name' can't be null";
}
if ($this->container['description'] === null) {
$invalidProperties[] = "'description' can't be null";
}
if ($this->container['raceId'] === null) {
$invalidProperties[] = "'raceId' can't be null";
}
if ($this->container['shipTypeId'] === null) {
$invalidProperties[] = "'shipTypeId' can't be null";
}
if ($this->container['corporationId'] === null) {
$invalidProperties[] = "'corporationId' can't be null";
}
if ($this->container['perception'] === null) {
$invalidProperties[] = "'perception' can't be null";
}
if ($this->container['willpower'] === null) {
$invalidProperties[] = "'willpower' can't be null";
}
if ($this->container['charisma'] === null) {
$invalidProperties[] = "'charisma' can't be null";
}
if ($this->container['memory'] === null) {
$invalidProperties[] = "'memory' can't be null";
}
if ($this->container['intelligence'] === null) {
$invalidProperties[] = "'intelligence' can't be null";
}
return $invalidProperties;
} | Show all the invalid properties with reasons.
@return array invalid properties with reasons | entailment |
public function setError($field, $error = 'Error de validación')
{
$this->fields[$field]['error'] = $error;
$this->errors[$field] = $error;
return $this;
} | Método que añade un error para un campo del formulario
@param string $field
@param string $error
@return FormSchemaTrait | entailment |
protected function execute(InputInterface $input, OutputInterface $output): ?int
{
// Throw an exception immediately if we don't have the required DB parameter
if (empty($input->getOption('db'))) {
throw new \InvalidArgumentException('Database name is required (--db)');
}
// Throw an exception immediately if we don't have the right mode
if (!in_array($input->getOption('mode'), ['queries', 'batch'])) {
throw new \InvalidArgumentException('--mode could be only "queries" or "batch"');
}
$password = $input->getOption('password');
if (null === $password) {
$question = new Question('Password: ');
$question->setHidden(true)->setHiddenFallback(false);
$password = $this->getHelper('question')->ask($input, $output, $question);
}
$this->input = $input;
$this->output = $output;
// Anon READER
$this->reader = new Reader($input->getOption('config'));
if (!empty($this->reader->getDepreciationMessages())) {
foreach ($this->reader->getDepreciationMessages() as $message) {
$output->writeLn("<comment>WARNING : $message</comment>");
}
}
$this->dbUtils->configure([
'driver' => $input->getOption('driver'),
'host' => $input->getOption('host'),
'dbname' => $input->getOption('db'),
'user' => $input->getOption('user'),
'password' => $password,
]);
$this->db = new DB($this->expression, $this->dbUtils);
$this->db->setConfiguration($this->reader);
$this->db->setMode($this->input->getOption('mode'));
$this->db->setPretend($this->input->getOption('pretend'));
$this->db->setReturnRes($this->input->getOption('sql'));
if (!empty($input->getOption('bootstrap'))) {
FileLoader::checkAndLoad($input->getOption('bootstrap'));
}
$stopwatch = new Stopwatch();
$stopwatch->start('Neuralyzer');
// Get tables
$table = $input->getOption('table');
$tables = empty($table) ? $this->reader->getEntities() : [$table];
$hasErrors = false;
foreach ($tables as $table) {
if (!$this->anonymizeTable($table)) {
$hasErrors = true;
}
}
// Get memory and execution time information
$event = $stopwatch->stop('Neuralyzer');
$memory = round($event->getMemory() / 1024 / 1024, 2);
$time = round($event->getDuration() / 1000, 2);
$time = ($time > 180 ? round($time / 60, 2).'min' : "$time sec");
$output->writeln("<info>Done in $time using $memory Mb of memory</info>");
return $hasErrors ? 1 : 0;
} | @param InputInterface $input Symfony's Input Class for parameters and options
@param OutputInterface $output Symfony's Output Class to display info
@return null|int null or 0 if everything went fine, or an error code
@throws \Doctrine\DBAL\DBALException
@throws \Edyan\Neuralyzer\Exception\NeuralyzerException | entailment |
private function anonymizeTable(string $table): bool
{
$total = $this->getTotal($table);
if ($total === 0) {
$this->output->writeln("<info>$table is empty</info>");
return true;
}
$bar = new ProgressBar($this->output, $total);
$bar->setRedrawFrequency($total > 100 ? 100 : 0);
$this->output->writeln("<info>Anonymizing $table</info>");
try {
$queries = $this->db->setLimit($total)->processEntity(
$table,
function () use ($bar) {
$bar->advance();
}
);
// @codeCoverageIgnoreStart
} catch (\Exception $e) {
$msg = "<error>Error anonymizing $table. Message was : " . $e->getMessage() . "</error>";
$this->output->writeln(PHP_EOL . $msg . PHP_EOL);
return false;
}
// @codeCoverageIgnoreEnd
$this->output->writeln(PHP_EOL);
if ($this->input->getOption('sql')) {
$this->output->writeln('<comment>Queries:</comment>');
$this->output->writeln(implode(PHP_EOL, $queries));
$this->output->writeln(PHP_EOL);
}
return true;
} | Anonymize a specific table and display info about the job
@param string $table
@return bool | entailment |
private function getTotal(string $table): int
{
$config = $this->reader->getEntityConfig($table);
$limit = (int)$config['limit'];
if ($config['action'] === 'insert') {
return empty($limit) ? 100 : $limit;
}
$rows = $this->dbUtils->countResults($table);
if (empty($limit)) {
return $rows;
}
if (!empty($limit) && $limit > $rows) {
return $rows;
}
return $limit;
} | Define the total number of records to process for progress bar
@param string $table
@return int | entailment |
public function setDay($day)
{
if (($day > 6)) {
throw new \InvalidArgumentException('invalid value for $day when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be smaller than or equal to 6.');
}
if (($day < 0)) {
throw new \InvalidArgumentException('invalid value for $day when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be bigger than or equal to 0.');
}
$this->container['day'] = $day;
return $this;
} | Sets day
@param int $day Day of the week, zero-indexed to Monday
@return $this | entailment |
public function setHour($hour)
{
if (($hour > 23)) {
throw new \InvalidArgumentException('invalid value for $hour when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be smaller than or equal to 23.');
}
if (($hour < 0)) {
throw new \InvalidArgumentException('invalid value for $hour when calling PutCorporationsCorporationIdStructuresStructureIdNewSchedule., must be bigger than or equal to 0.');
}
$this->container['hour'] = $hour;
return $this;
} | Sets hour
@param int $hour Hour of the day evetime, zero-indexed to midnight
@return $this | entailment |
protected function configure(): void
{
// First command : Test the DB Connexion
$this->setName($this->command)
->setDescription(
'Validate a configuration for the Anonymizer'
)->setHelp(
'This command will validate that the configuration provided is valid' . PHP_EOL .
"Usage: neuralyzer <info>{$this->command}</info> -f neuralyzer.yml"
)->addOption(
'file',
'f',
InputOption::VALUE_REQUIRED,
'File',
'neuralyzer.yml'
)->addOption(
'dump',
'D',
InputOption::VALUE_NONE,
'Dump full configuration'
);
} | Configure the command
@return void | entailment |
protected function execute(InputInterface $input, OutputInterface $output): void
{
try {
$reader = new \Edyan\Neuralyzer\Configuration\Reader($input->getOption('file'));
} catch (\Symfony\Component\Config\Definition\Exception\InvalidConfigurationException $e) {
throw new \Edyan\Neuralyzer\Exception\NeuralyzerConfigurationException($e->getMessage());
} catch (\Symfony\Component\Config\Exception\FileLocatorFileNotFoundException $e) {
throw new \Edyan\Neuralyzer\Exception\NeuralyzerException($e->getMessage());
}
if (!empty($reader->getDepreciationMessages())) {
foreach ($reader->getDepreciationMessages() as $message) {
$output->writeln("<comment>WARNING : $message</comment>");
}
}
$output->writeln("<info>Your config is valid !</info>");
if ($input->getOption('dump') === true) {
$output->writeln(Yaml::dump($reader->getConfigValues(), 4));
}
} | Execute the command
@param InputInterface $input
@param OutputInterface $output
@throws \Edyan\Neuralyzer\Exception\NeuralyzerConfigurationException
@throws \Edyan\Neuralyzer\Exception\NeuralyzerException
@return void | entailment |
public function createApiDocs($domain)
{
ini_set('memory_limit', -1);
ini_set('max_execution_time', -1);
$type = $this->getRequest()->get('type') ?: ApiController::PSFS_DOC;
$download = $this->getRequest()->get('download') ?: false;
$module = $this->srv->getModules($domain);
if(empty($module)) {
return Router::getInstance()->httpNotFound(null, true);
}
switch (strtolower($type)) {
case ApiController::SWAGGER_DOC:
$doc = DocumentorService::swaggerFormatter($module);
break;
case ApiController::POSTMAN_DOC:
$doc = ['Pending...'];
break;
default:
case ApiController::HTML_DOC:
case ApiController::PSFS_DOC:
$doc = $this->srv->extractApiEndpoints($module);
break;
}
ini_restore('max_execution_time');
ini_restore('memory_limit');
if($download && $type === ApiController::SWAGGER_DOC) {
return $this->download(json_encode($doc), 'application/json', 'swagger.json');
}
if($type === ApiController::HTML_DOC) {
return $this->render('documentation.html.twig', ["data" => json_encode($doc)]);
}
return $this->json($doc, 200);
} | @GET
@CACHE 600
@label Generador de documentación API
@route /{domain}/api/doc
@param string $domain
@return string JSON | entailment |
public function setShareholderType($shareholderType)
{
$allowedValues = $this->getShareholderTypeAllowableValues();
if (!in_array($shareholderType, $allowedValues)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'shareholderType', must be one of '%s'",
implode("', '", $allowedValues)
)
);
}
$this->container['shareholderType'] = $shareholderType;
return $this;
} | Sets shareholderType
@param string $shareholderType shareholder_type string
@return $this | entailment |
public function getSovereigntyCampaigns($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getSovereigntyCampaignsWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getSovereigntyCampaigns
List sovereignty campaigns
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetSovereigntyCampaigns200Ok[] | entailment |
public function getSovereigntyCampaignsAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getSovereigntyCampaignsAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getSovereigntyCampaignsAsync
List sovereignty campaigns
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getSovereigntyMap($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getSovereigntyMapWithHttpInfo($datasource, $userAgent, $xUserAgent);
return $response;
} | Operation getSovereigntyMap
List sovereignty of systems
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetSovereigntyMap200Ok[] | entailment |
public function getSovereigntyMapAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getSovereigntyMapAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getSovereigntyMapAsync
List sovereignty of systems
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getSovereigntyStructuresAsync($datasource = 'tranquility', $userAgent = null, $xUserAgent = null)
{
return $this->getSovereigntyStructuresAsyncWithHttpInfo($datasource, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getSovereigntyStructuresAsync
List sovereignty structures
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getCharactersCharacterIdContracts($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdContractsWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdContracts
Get contracts
@param int $characterId An EVE character ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetCharactersCharacterIdContracts200Ok[] | entailment |
public function getCharactersCharacterIdContractsAsync($characterId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdContractsAsyncWithHttpInfo($characterId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getCharactersCharacterIdContractsAsync
Get contracts
@param int $characterId An EVE character ID (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getCharactersCharacterIdContractsContractIdBids($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdContractsContractIdBidsWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdContractsContractIdBids
Get contract bids
@param int $characterId An EVE character ID (required)
@param int $contractId ID of a contract (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdBids200Ok[] | entailment |
public function getCharactersCharacterIdContractsContractIdBidsAsync($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
return $this->getCharactersCharacterIdContractsContractIdBidsAsyncWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent)
->then(
function ($response) {
return $response[0];
}
);
} | Operation getCharactersCharacterIdContractsContractIdBidsAsync
Get contract bids
@param int $characterId An EVE character ID (required)
@param int $contractId ID of a contract (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \InvalidArgumentException
@return \GuzzleHttp\Promise\PromiseInterface | entailment |
public function getCharactersCharacterIdContractsContractIdItems($characterId, $contractId, $datasource = 'tranquility', $token = null, $userAgent = null, $xUserAgent = null)
{
list($response) = $this->getCharactersCharacterIdContractsContractIdItemsWithHttpInfo($characterId, $contractId, $datasource, $token, $userAgent, $xUserAgent);
return $response;
} | Operation getCharactersCharacterIdContractsContractIdItems
Get contract items
@param int $characterId An EVE character ID (required)
@param int $contractId ID of a contract (required)
@param string $datasource The server name you would like data from (optional, default to tranquility)
@param string $token Access token to use if unable to set a header (optional)
@param string $userAgent Client identifier, takes precedence over headers (optional)
@param string $xUserAgent Client identifier, takes precedence over User-Agent (optional)
@throws \nullx27\ESI\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \nullx27\ESI\nullx27\ESI\Models\GetCharactersCharacterIdContractsContractIdItems200Ok[] | entailment |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.