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 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
Post a Comment