mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
Implicit method visibility (instead of implied public)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user