mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed bug #75202 (Interfaces shouldn't be able to define a constructor)
We document that interfaces allow constructors to be declared. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343082 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
db209c95f9
commit
7c0b830e98
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 xml:id="language.oop5.interfaces" xmlns="http://docbook.org/ns/docbook">
|
||||
<sect1 xml:id="language.oop5.interfaces" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Object Interfaces</title>
|
||||
<para>
|
||||
Object interfaces allow you to create code which specifies which methods a
|
||||
|
@ -16,6 +16,11 @@
|
|||
All methods declared in an interface must be public; this is the nature of an
|
||||
interface.
|
||||
</para>
|
||||
<para>
|
||||
Note that it is possible to declare a <link
|
||||
linkend="language.oop5.decon.constructor">constructor</link> in an interface,
|
||||
what can be useful in some contexts, e.g. for use by factories.
|
||||
</para>
|
||||
<sect2 xml:id="language.oop5.interfaces.implements">
|
||||
<title><literal>implements</literal></title>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue