phpdoc refactoring