20 lines
310 B
JavaScript
20 lines
310 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const withIs = require('../../..');
|
||
|
|
||
|
class Plant {
|
||
|
constructor(type) {
|
||
|
this.type = type;
|
||
|
}
|
||
|
|
||
|
getType() {
|
||
|
return this.type;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = withIs(Plant, {
|
||
|
className: 'Plant',
|
||
|
symbolName: '@org/package/Plant',
|
||
|
});
|
||
|
module.exports.WrappedClass = Plant;
|