mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding information about method signatures and typehinting to PHP manual.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288352 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b5539fbafa
commit
e93446e9b5
1 changed files with 13 additions and 3 deletions
|
@ -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 @@ class b implements a
|
|||
]]>
|
||||
</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>
|
||||
|
|
Loading…
Reference in a new issue