phpdoc as code duplication

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

koen.h
Forum Contributor
Posts: 268
Joined: Sat May 03, 2008 8:43 am

Re: phpdoc as code duplication

Post by koen.h »

Another example of how I think PHPDoc is a waste of time:

Code: Select all

/**
* Class constructor. The profiler is disabled by default unless it is
* specifically enabled by passing in $enabled here or calling setEnabled().
*
* @param boolean $enabled
* @return void
*/
public function __construct($enabled = false)
{
    $this->setEnabled($enabled);
}
from https://github.com/zendframework/zf2/bl ... ofiler.php
Post Reply