- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
/**
* @param int $filterType
* @return int
*/
public static function performanceFarmerStatFilterTranslator(int $filterType): int
{
switch (true) {
case 1 === $filterType:
return Task::TYPE_PREPARE_ACCOUNTS_BY_REQUEST;
case 2 === $filterType:
return Task::TYPE_PREPARE_GOOGLE_ACCOUNTS_BY_REQUEST;
case 3 === $filterType:
return Task::TYPE_PREPARE_TWITTER_ACCOUNTS_BY_REQUEST;
case 4 === $filterType:
return Task::TYPE_PASSWORD_MATCHING;
case 6 === $filterType:
return Task::TYPE_ACCOUNT_MARKUP;
case 7 === $filterType:
return Task::TYPE_REPLACE_ACCOUNTS;
}
return 0;
}