diff options
Diffstat (limited to 'tests/classes/dereferencing_001.phpt')
-rw-r--r-- | tests/classes/dereferencing_001.phpt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/classes/dereferencing_001.phpt b/tests/classes/dereferencing_001.phpt index e7e90cf5e3..4ec2a87659 100644 --- a/tests/classes/dereferencing_001.phpt +++ b/tests/classes/dereferencing_001.phpt @@ -4,25 +4,25 @@ ZE2 dereferencing of objects from methods <?php class Name { - function __construct($_name) { - $this->name = $_name; - } + function __construct($_name) { + $this->name = $_name; + } - function display() { - echo $this->name . "\n"; - } + function display() { + echo $this->name . "\n"; + } } class Person { - private $name; + private $name; - function __construct($_name, $_address) { - $this->name = new Name($_name); - } + function __construct($_name, $_address) { + $this->name = new Name($_name); + } - function getName() { - return $this->name; - } + function getName() { + return $this->name; + } } $person = new Person("John", "New York"); |