Item.js 407 B

123456789101112131415161718192021
  1. export default class Item {
  2. constructor() {
  3. Item.constructor_.apply(this, arguments)
  4. }
  5. static constructor_() {
  6. this._env = null
  7. this._item = null
  8. const env = arguments[0], item = arguments[1]
  9. this._env = env
  10. this._item = item
  11. }
  12. getEnvelope() {
  13. return this._env
  14. }
  15. getItem() {
  16. return this._item
  17. }
  18. toString() {
  19. return 'Item: ' + this._env.toString()
  20. }
  21. }