Add constructors to PHP classes.