svn: /phpdoc/en/trunk/language/oop5/ inheritance.xml
| From: | Chris Wright | Date: | Mon, 01 Sep 2014 16:13:03 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ inheritance.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12766@lists.php.net to get a copy of this message | ||
daverandom Mon, 01 Sep 2014 16:13:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=334699
Log:
Casing consistency fix in OOP docs
--
Provided by anonymous 47943
Changed paths:
U phpdoc/en/trunk/language/oop5/inheritance.xml
Modified: phpdoc/en/trunk/language/oop5/inheritance.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/inheritance.xml 2014-09-01 16:10:02 UTC (rev 334698)
+++ phpdoc/en/trunk/language/oop5/inheritance.xml 2014-09-01 16:13:03 UTC (rev 334699)
@@ -34,7 +34,7 @@
<![CDATA[
<?php
-class foo
+class Foo
{
public function printItem($string)
{
@@ -47,7 +47,7 @@
}
}
-class bar extends foo
+class Bar extends Foo
{
public function printItem($string)
{
@@ -55,8 +55,8 @@
}
}
-$foo = new foo();
-$bar = new bar();
+$foo = new Foo();
+$bar = new Bar();
$foo->printItem('baz'); // Output: 'Foo: baz'
$foo->printPHP(); // Output: 'PHP is great'
$bar->printItem('baz'); // Output: 'Bar: baz'