PHP doc refactoring