Rework and support phpdoc.