Skip to content

Commit ee8a8e6

Browse files
author
Andrew Eddie
committed
Rmoved the def method.
1 parent 255d7e6 commit ee8a8e6

File tree

1 file changed

+1
-4
lines changed
  • manual/en-US/chapters/packages

1 file changed

+1
-4
lines changed

manual/en-US/chapters/packages/data.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ $object->bind(array('goo' => 'car');
5151
// Get a plain object version of the JData.
5252
$stdClass = $object->dump();
5353

54-
// Set a property with a default value if it is not already set.
55-
$object->def('foo', 'oof');
56-
57-
// An alternative technique to get a value or a default.
54+
// Get a property with a default value if it is not already set.
5855
$foo = $object->foo ?: 'The default';
5956

6057
// Iterate over the properties as if the object were a real array.

0 commit comments

Comments
 (0)