I am trying to write a phpdocumentor block for the following:
public function daysBetween($startDate,$endDate) {
$ startDate and $ endDate are mandatory arguments, while all instances of $ holidays are optional ... there cannot be one, not one, or several given vacation days. The definition of PHPDocumentor above gives me
Parameter $ holidays, ... not found in daysBetween ()
I believe that it is possible to get around this by changing the definition of the method to
public function daysBetween($startDate,$endDate,$holidays=NULL) {
but it is very unpleasant, and I do not think that I need to change the definition of a function in order to document it. Does anyone have any other suggestions?
PS I am using PHPDocumentor2
source share