Bình luận: Đây là một từ khóa cực kỳ hữu ích cho bất kỳ nhà phát triển đã lợi dụng các phương pháp ma thuật của PHP. Kể từ khi thậm chí còn phản ánh không thể biết về các phương pháp phát triển tạo ra bằng cách sử dụng phương pháp ma thuật __call (), | Chapter 2 @method Name File Class Method Property @method return_type method_name type arg1 vall type arg2 val2 . description x Example s method array mix Array arrayl array Array array2 array joins and randomizes two arrays Comments This is an extremely useful tag for any developer who takes advantage of PHP s magic methods. Since even reflection cannot know about methods the developer creates using thecall magic method one can use the @method tag to document any magic methods provided by the class. Any method documented this way will be listed on the class-level documentation. @name Name File Class Method Property name var_name x Example s name colors global array HTML_COLORS array ffffff ff0000 000000 white red black Comments Creates an alias for a global variable for documentation purposes also see global tag . 77 Download from Wow eBook Documentation with phpDocumentor @package Name File Class Method Property package package_name x x Example s File-level package tag package Authentication_API Class-level package tag needed because it is not inherited package Authentication_API class ResultSet Comments This tag defines a logical grouping of elements within the documentation. A file-level package tag will apply to all elements within that file however package membership of classes will be default unless explicitly set for the class itself. This is true even if the file-level package tag has been set The only exception is that sub-classes inherit their parent class s package membership. @property Name File Class Method Property property data_type var_name description x property-read datatype varname description x property-write datatype varname description x Example s property string greeting greeting to user upon login class Login private greeting Hello Stranger public function _get property if property greeting return this- greeting 78 Download from Wow eBook Chapter 2 Comments The property tag documents magic properties