<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [WorkFormulas](./bitburner.workformulas.md) > [classGains](./bitburner.workformulas.classgains.md) ## WorkFormulas.classGains() method <b>Signature:</b> ```typescript classGains(player: Player, classType: string, locationName: string): WorkStats; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | player | [Player](./bitburner.player.md) | | | classType | string | | | locationName | string | | <b>Returns:</b> [WorkStats](./bitburner.workstats.md)