Created
December 21, 2017 00:01
-
-
Save duhruh/6ed6e8ff0a3f9651c95aee877f8dd2e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyEntitiy { | |
private foo; | |
private bar; | |
function MyEntity(foo, bar){ | |
this.setFoo(foo); | |
this.setBar(bar); | |
} | |
function setFoo(foo){ | |
this.foo = foo; | |
} | |
function setBar(bar){ | |
this.bar = bar; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment