SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
@phpdoc by Aram Baghdasaryan
@phpdoc aka
Doxygen standard
What @phpdoc is?
@phpdoc by Aram Baghdasaryan
PHPDoc is an adaptation of Javadoc for the
PHP programming language
@phpdoc by Aram Baghdasaryan
· documentation
· relationships
· diagrams
· autocomplete
What it gives to us?
@phpdoc by Aram Baghdasaryan
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
· in context of a class
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
· in context of a class
· in context of a method
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
· in context of a page
· in context of a class
· in context of a method
· in context of a properties & variables
We can apply @phpdoc
@phpdoc by Aram Baghdasaryan
short style
/** 
 */
“long” style
/**
* 

*/
DocBlock syntax
@phpdoc by Aram Baghdasaryan
/**
* This is a DocBlock comment
*/
function() {
...
}
First impression
@phpdoc by Aram Baghdasaryan
/**
* @method type MethodName($param)
* @property type propertyName
* ...
*/
class specific @phpdoc
@phpdoc by Aram Baghdasaryan
/**
* @method int exp($num)
*/
class Number { ... }
$pass = new Number();
$pass->exp(5);
@phpdoc method
@phpdoc by Aram Baghdasaryan
/**
* @param type $param Description
* @return type
* @throws Exception
* ...
*/
method specific @phpdoc
@phpdoc by Aram Baghdasaryan
/**
* @param DomainUser $param
*/
function ident($param) {
...
}
@phpdoc param
@phpdoc by Aram Baghdasaryan
/**
* @param User|bool $param
*/
function ident($param) {
if ($param) {
$param->getName();
}
}
@phpdoc param
@phpdoc by Aram Baghdasaryan
/**
* @param User[]|ArrayObject $param
*/
function ident($param) {
if ($param->count()) {
foreach ($param as $item) { ... }
}
}
@phpdoc param
@phpdoc by Aram Baghdasaryan
/**
* @return User[]|ArrayObject $param
*/
function getUserDomain() {
...
}
@phpdoc return
@phpdoc by Aram Baghdasaryan
/**
* @throws Exception
* @throws CustomException
*/
function interrupt() {
throw new CustomException(‘...’);
}
@phpdoc throws
@phpdoc by Aram Baghdasaryan
/**
* @var type $param Description
* @name $var1
* @global type $var2
* ...
*/
variable specific @phpdoc
@phpdoc by Aram Baghdasaryan
/**
* Important Method ...
*
* Usage:
* <code>
* $x = MyMethod($param);
* $x->init();
* </code>
*/
HTML in descriptions
@phpdoc by Aram Baghdasaryan
Thank You!

Weitere Àhnliche Inhalte

Was ist angesagt?

Javascript part1
Javascript part1Javascript part1
Javascript part1
Raghu nath
 
An Introduction to JavaScript
An Introduction to JavaScriptAn Introduction to JavaScript
An Introduction to JavaScript
tonyh1
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
Varun C M
 

Was ist angesagt? (20)

8 introduction to_java_script
8 introduction to_java_script8 introduction to_java_script
8 introduction to_java_script
 
Complete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScriptComplete Notes on Angular 2 and TypeScript
Complete Notes on Angular 2 and TypeScript
 
Javascript part1
Javascript part1Javascript part1
Javascript part1
 
Introduction to JavaScript Basics.
Introduction to JavaScript Basics.Introduction to JavaScript Basics.
Introduction to JavaScript Basics.
 
Intro To Hibernate
Intro To HibernateIntro To Hibernate
Intro To Hibernate
 
Dynamic Language Performance
Dynamic Language PerformanceDynamic Language Performance
Dynamic Language Performance
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Java Script An Introduction By HWA
Java Script An Introduction By HWAJava Script An Introduction By HWA
Java Script An Introduction By HWA
 
XML
XMLXML
XML
 
An Introduction to JavaScript
An Introduction to JavaScriptAn Introduction to JavaScript
An Introduction to JavaScript
 
Java script
Java scriptJava script
Java script
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Dtd
DtdDtd
Dtd
 
Java script
Java scriptJava script
Java script
 
Placement and variable 03 (js)
Placement and variable 03 (js)Placement and variable 03 (js)
Placement and variable 03 (js)
 
Javascript
JavascriptJavascript
Javascript
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Javascript functions
Javascript functionsJavascript functions
Javascript functions
 
Javascript
JavascriptJavascript
Javascript
 

Andere mochten auch

Un año papå...Un día te veré...
Un año papå...Un día te veré...Un año papå...Un día te veré...
Un año papå...Un día te veré...
Monica Bonino
 
N.Gencevi
N.GenceviN.Gencevi
N.Gencevi
yusif123
 
ДИАНЕбИКА 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽ
ДИАНЕбИКА 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽĐ”Đ˜ĐĐĐ•ĐąĐ˜ĐšĐ 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽ
ДИАНЕбИКА 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽ
web-processing
 

Andere mochten auch (14)

My Portfolio
My PortfolioMy Portfolio
My Portfolio
 
Cheap Vacation Trips For Summer
Cheap Vacation Trips For SummerCheap Vacation Trips For Summer
Cheap Vacation Trips For Summer
 
Welding equipment | #Weldingequipment
Welding equipment | #WeldingequipmentWelding equipment | #Weldingequipment
Welding equipment | #Weldingequipment
 
Un año papå...Un día te veré...
Un año papå...Un día te veré...Un año papå...Un día te veré...
Un año papå...Un día te veré...
 
N.Gencevi
N.GenceviN.Gencevi
N.Gencevi
 
Article Marketing For SEO - Article Distribution
Article Marketing For SEO - Article DistributionArticle Marketing For SEO - Article Distribution
Article Marketing For SEO - Article Distribution
 
Gaining Strategic Insight For Higher Profits
Gaining Strategic Insight For Higher ProfitsGaining Strategic Insight For Higher Profits
Gaining Strategic Insight For Higher Profits
 
Accoled dm 2014
Accoled dm 2014Accoled dm 2014
Accoled dm 2014
 
ДИАНЕбИКА 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽ
ДИАНЕбИКА 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽĐ”Đ˜ĐĐĐ•ĐąĐ˜ĐšĐ 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽ
ДИАНЕбИКА 55! РуĐșĐŸĐČĐŸĐŽŃŃ‚ĐČĐŸ ĐżĐŸ ŃŃ„Ń„Đ”ĐșтоĐČĐœĐŸĐŒŃƒ ĐŸĐ±Ń‰Đ”ĐœĐžŃŽ
 
Iep
IepIep
Iep
 
123
123123
123
 
ĐĐ°ŃŃ‚ĐŸĐ»ŃŒĐœĐ°Ń ĐșĐœĐžĐłĐ° ĐŽĐ»Ń ĐŸŃ€Đ”ĐșĐ»ĐžŃ€ĐŸĐČ
ĐĐ°ŃŃ‚ĐŸĐ»ŃŒĐœĐ°Ń ĐșĐœĐžĐłĐ° ĐŽĐ»Ń ĐŸŃ€Đ”ĐșĐ»ĐžŃ€ĐŸĐČĐĐ°ŃŃ‚ĐŸĐ»ŃŒĐœĐ°Ń ĐșĐœĐžĐłĐ° ĐŽĐ»Ń ĐŸŃ€Đ”ĐșĐ»ĐžŃ€ĐŸĐČ
ĐĐ°ŃŃ‚ĐŸĐ»ŃŒĐœĐ°Ń ĐșĐœĐžĐłĐ° ĐŽĐ»Ń ĐŸŃ€Đ”ĐșĐ»ĐžŃ€ĐŸĐČ
 
allBItech profile
allBItech profileallBItech profile
allBItech profile
 
Absolutevaluelab
AbsolutevaluelabAbsolutevaluelab
Absolutevaluelab
 

Ähnlich wie PHPDoc aka Doxygen standard

latest slide
latest slidelatest slide
latest slide
alind tiwari
 
Php Reusing Code And Writing Functions
Php Reusing Code And Writing FunctionsPhp Reusing Code And Writing Functions
Php Reusing Code And Writing Functions
mussawir20
 
DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)
Oleg Zinchenko
 
DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11
Mike van Riel
 
Rack Middleware
Rack MiddlewareRack Middleware
Rack Middleware
LittleBIGRuby
 
PHPDoc
PHPDocPHPDoc
PHPDoc
pjfiers
 

Ähnlich wie PHPDoc aka Doxygen standard (20)

Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
Kicking off with Zend Expressive and Doctrine ORM (Sunshine PHP 2017)
 
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP UK 2017)
 
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
 
Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP South Africa 2018)
 
Extending Zend Framework
Extending Zend FrameworkExtending Zend Framework
Extending Zend Framework
 
latest slide
latest slidelatest slide
latest slide
 
testing add
testing addtesting add
testing add
 
Crafting Quality PHP Applications (PHP Joburg Oct 2019)
Crafting Quality PHP Applications (PHP Joburg Oct 2019)Crafting Quality PHP Applications (PHP Joburg Oct 2019)
Crafting Quality PHP Applications (PHP Joburg Oct 2019)
 
Php Reusing Code And Writing Functions
Php Reusing Code And Writing FunctionsPhp Reusing Code And Writing Functions
Php Reusing Code And Writing Functions
 
DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)DDD on example of Symfony (Webcamp Odessa 2014)
DDD on example of Symfony (Webcamp Odessa 2014)
 
Pxb For Yapc2008
Pxb For Yapc2008Pxb For Yapc2008
Pxb For Yapc2008
 
DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11DocBlox: your source matters @ #pfc11
DocBlox: your source matters @ #pfc11
 
Rack Middleware
Rack MiddlewareRack Middleware
Rack Middleware
 
Applicative style programming
Applicative style programmingApplicative style programming
Applicative style programming
 
Rest in practice con Symfony2
Rest in practice con Symfony2Rest in practice con Symfony2
Rest in practice con Symfony2
 
PHPDoc
PHPDocPHPDoc
PHPDoc
 
EmberConf 2021 - Crossfile Codemodding with Joshua Lawrence
EmberConf 2021 - Crossfile Codemodding with Joshua LawrenceEmberConf 2021 - Crossfile Codemodding with Joshua Lawrence
EmberConf 2021 - Crossfile Codemodding with Joshua Lawrence
 
Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)
Kicking off with Zend Expressive and Doctrine ORM (PHP MiNDS March 2018)
 
Perl Presentation
Perl PresentationPerl Presentation
Perl Presentation
 
Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)
Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)
Kicking off with Zend Expressive and Doctrine ORM (ZendCon 2016)
 

KĂŒrzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

KĂŒrzlich hochgeladen (20)

Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

PHPDoc aka Doxygen standard

  • 1. @phpdoc by Aram Baghdasaryan @phpdoc aka Doxygen standard
  • 2. What @phpdoc is? @phpdoc by Aram Baghdasaryan PHPDoc is an adaptation of Javadoc for the PHP programming language
  • 3. @phpdoc by Aram Baghdasaryan · documentation · relationships · diagrams · autocomplete What it gives to us?
  • 4. @phpdoc by Aram Baghdasaryan We can apply @phpdoc
  • 5. @phpdoc by Aram Baghdasaryan · in context of a page We can apply @phpdoc
  • 6. @phpdoc by Aram Baghdasaryan · in context of a page · in context of a class We can apply @phpdoc
  • 7. @phpdoc by Aram Baghdasaryan · in context of a page · in context of a class · in context of a method We can apply @phpdoc
  • 8. @phpdoc by Aram Baghdasaryan · in context of a page · in context of a class · in context of a method · in context of a properties & variables We can apply @phpdoc
  • 9. @phpdoc by Aram Baghdasaryan short style /** 
 */ “long” style /** * 
 */ DocBlock syntax
  • 10. @phpdoc by Aram Baghdasaryan /** * This is a DocBlock comment */ function() { ... } First impression
  • 11. @phpdoc by Aram Baghdasaryan /** * @method type MethodName($param) * @property type propertyName * ... */ class specific @phpdoc
  • 12. @phpdoc by Aram Baghdasaryan /** * @method int exp($num) */ class Number { ... } $pass = new Number(); $pass->exp(5); @phpdoc method
  • 13. @phpdoc by Aram Baghdasaryan /** * @param type $param Description * @return type * @throws Exception * ... */ method specific @phpdoc
  • 14. @phpdoc by Aram Baghdasaryan /** * @param DomainUser $param */ function ident($param) { ... } @phpdoc param
  • 15. @phpdoc by Aram Baghdasaryan /** * @param User|bool $param */ function ident($param) { if ($param) { $param->getName(); } } @phpdoc param
  • 16. @phpdoc by Aram Baghdasaryan /** * @param User[]|ArrayObject $param */ function ident($param) { if ($param->count()) { foreach ($param as $item) { ... } } } @phpdoc param
  • 17. @phpdoc by Aram Baghdasaryan /** * @return User[]|ArrayObject $param */ function getUserDomain() { ... } @phpdoc return
  • 18. @phpdoc by Aram Baghdasaryan /** * @throws Exception * @throws CustomException */ function interrupt() { throw new CustomException(‘...’); } @phpdoc throws
  • 19. @phpdoc by Aram Baghdasaryan /** * @var type $param Description * @name $var1 * @global type $var2 * ... */ variable specific @phpdoc
  • 20. @phpdoc by Aram Baghdasaryan /** * Important Method ... * * Usage: * <code> * $x = MyMethod($param); * $x->init(); * </code> */ HTML in descriptions
  • 21. @phpdoc by Aram Baghdasaryan Thank You!