mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01:00
Merge pull request #9 from dave1010/patch-1
Implicit method visibility (instead of implied public)
This commit is contained in:
commit
2c239bf70e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user