Add phpdoc for file method.