$userId]); if(!$user){ return 0; } return $user['STAGE']; } public static function getInfo($userId) { $userInfo = static::findOneAsArray("USER_ID = :USER_ID", [':USER_ID' => $userId]); if(!$userInfo){ return [ ]; } return $userInfo; } }