feat: Entity::hasTrait

This commit is contained in:
cha0s 2019-03-20 18:27:06 -05:00
parent cc95512f39
commit d257ea4161

View File

@ -86,6 +86,10 @@ class Entity extends decorate(Resource) {
return this;
}
hasTrait(type) {
return this.traits_PRIVATE.hasTrait(type);
}
hydrate() {
return this.traits_PRIVATE.hydrate();
}