PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/Commenting/FunctionCommentThrowTagStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 647 bytes
 

Contents

Class file image Download
<documentation title="Doc Comment Throws Tag"> <standard> <![CDATA[ If a function throws any exceptions, they should be documented in a @throws tag. ]]> </standard> <code_comparison> <code title="Valid: @throws tag used."> <![CDATA[ /** * <em>@throws Exception all the time</em> * @return void */ function foo() { throw new Exception('Danger!'); } ]]> </code> <code title="Invalid: No @throws tag used for throwing function."> <![CDATA[ /** * @return void */ function foo() { throw new Exception('Danger!'); } ]]> </code> </code_comparison> </documentation>