svn: /phpdoc/en/trunk/language/oop5/ interfaces.xml
| From: | Brandon Savage | Date: | Tue, 15 Sep 2009 17:39:58 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ interfaces.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4929@lists.php.net to get a copy of this message | ||
brandon Tue, 15 Sep 2009 17:39:58 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288352
Log:
Adding information about method signatures and typehinting to PHP manual.
Changed paths:
U phpdoc/en/trunk/language/oop5/interfaces.xml
Modified: phpdoc/en/trunk/language/oop5/interfaces.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/interfaces.xml 2009-09-15 16:54:11 UTC (rev 288351)
+++ phpdoc/en/trunk/language/oop5/interfaces.xml 2009-09-15 17:39:58 UTC (rev 288352)
@@ -36,6 +36,13 @@
operator.
</para>
</note>
+ <note>
+ <para>
+ The class implementing the interface must use the exact same method
+ signatures as are defined in the interface. Not doing so will result in a
+ fatal error.
+ </para>
+ </note>
</sect2>
<sect2 xml:id="language.oop5.interfaces.constants">
<title><literal>Constants</literal></title>
@@ -202,10 +209,13 @@
]]>
</programlisting>
</example>
- <simpara>
- See also the <link linkend="language.operators.type">instanceof</link>
+ <para>
+ An interface, together with type-hinting, provides a good way to make sure
+ that a particular object contains particular methods. See
+ <link linkend="language.operators.type">instanceof</link> and
+ <link linkend="language.oop5.typehinting">type hinting</link>.
operator.
- </simpara>
+ </para>
</sect2>
</sect1>