[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    Re: [DOC-CVS] svn: /phpdoc/en/trunk/reference/reflection/reflectionclass/clone.xml versions.xml
From:       Peter Cowburn <petercowburn () gmail ! com>
Date:       2012-05-28 6:47:03
Message-ID: CAPg3XxKiC=yrr5meV548m2O9m-qwexJ7CiEd40JVwGtt16hFtA () mail ! gmail ! com
[Download RAW message or body]


On 28 May 2012 01:09, Justin Martin <frozenfire@php.net> wrote:

> What is the point of documenting private, final, inaccessible internal
> methods? The ReflectionClass object cannot be cloned. That's effectively
> the only reason why the method is defined at all - to prevent cloning of
> the object.
>
> The only reason the undocumented method existed in the first place was
> that it was created by the docgen script.
>
>
 I'd rather see a nearly empty page, detailing that this method is present
yet final and private to prevent cloning, than have no page at all. If
anyone ever asks why they cannot clone such an object, I'll be sure to
point them at the appropriate manual page=85 oh, wait.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic