Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions language/oop5/cloning.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ echo (clone $dateTime)->format('Y');
<simpara>
The overrides are applied after
<link linkend="object.clone">__clone()</link> has run, and they honour the
visibility of the properties: a
<link linkend="language.oop5.properties.readonly-properties">readonly</link>
property can only be overridden from a scope that is allowed to write it,
which makes the function suited to methods returning a modified copy.
visibility of all properties.
<link linkend="language.oop5.properties.readonly-properties">Readonly</link>
properties can be updated on the copy even if they were already set on the
original object, which makes the function suited to methods returning a
modified copy.
</simpara>

<example>
Expand Down
Loading