A simple way to define class constructors in a similar way as you do in PHP