From e93446e9b55ce475a7b7f6a8abaee5caca9b6841 Mon Sep 17 00:00:00 2001 From: Brandon Savage Date: Tue, 15 Sep 2009 17:39:58 +0000 Subject: [PATCH] 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 --- language/oop5/interfaces.xml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/language/oop5/interfaces.xml b/language/oop5/interfaces.xml index 5f5a0770d9..d4757e4466 100644 --- a/language/oop5/interfaces.xml +++ b/language/oop5/interfaces.xml @@ -36,6 +36,13 @@ operator. + + + 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. + + <literal>Constants</literal> @@ -202,10 +209,13 @@ class b implements a ]]> - - See also the instanceof + + An interface, together with type-hinting, provides a good way to make sure + that a particular object contains particular methods. See + instanceof and + type hinting. operator. - +