* Returns the quantity of items in the transfer. * @return Amount of items. */
| 236 | * @return Amount of items. |
| 237 | */ |
| 238 | int Transfer::getQuantity() const |
| 239 | { |
| 240 | if (_itemQty != 0) |
| 241 | { |
| 242 | return _itemQty; |
| 243 | } |
| 244 | else if (_scientists != 0) |
| 245 | { |
| 246 | return _scientists; |
| 247 | } |
| 248 | else if (_engineers != 0) |
| 249 | { |
| 250 | return _engineers; |
| 251 | } |
| 252 | return 1; |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * Returns the type of the contents of the transfer. |
no outgoing calls
no test coverage detected