php - What are these mysterious things in defining methods? -


back development after spending years in management position, dealing php code, has definitions cannot understand (looks far beyond of php progress on these years). can let me know campaigndto , paramdto in definition?

what returned method?

/**  * creates campaign  * @param campaigndto $campaign  * @param paramdto $param  * @throws \exception  * @return campaigndto  */ public function createcampaign(campaigndto $campaign, paramdto $param) { } 

type declarations per docs:

type declarations allow functions require parameters of type @ call time. if given value of incorrect type, error generated: in php 5, recoverable fatal error, while php 7 throw typeerror exception.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -