Merge pull request #9 from dave1010/patch-1

Implicit method visibility (instead of implied public)
This commit is contained in:
Dominik Liebler 2013-05-10 02:05:04 -07:00
commit 2c239bf70e

View File

@ -21,7 +21,7 @@ abstract class BookPrototype
* @abstract
* @return void
*/
abstract function __clone();
abstract public function __clone();
public function getTitle()
{
@ -62,4 +62,4 @@ $barPrototype = new BarBookPrototype();
for ($i = 0; $i < 10000; $i++) {
$book = clone $fooPrototype;
$book->setTitle('Foo Book No ' . $i);
}
}