'array', ]; public static $shortStatusAndStatusMap = [ 'I' => self::STATUS_INIT, 'P' => self::STATUS_PROCESS, 'S' => self::STATUS_SUCCESS, 'F' => self::STATUS_FAILED, ]; public static function getStatusByShortStatus($shortStatus) { return self::$shortStatusAndStatusMap[$shortStatus] ?: null; } }