fixed phpdoc and type of constructor