Update code for PHP class constructor.