mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
Fix creation
This commit is contained in:
committed by
GitHub
parent
cca8bc55f9
commit
7e2991eee5
@@ -46,7 +46,7 @@ Usage
|
||||
.. code:: php
|
||||
|
||||
$factory = new SimpleFactory();
|
||||
$bicycle = $factory->createVehicle('bicycle');
|
||||
$bicycle = $factory->createBicycle();
|
||||
$bicycle->driveTo('Paris');
|
||||
|
||||
Test
|
||||
|
Reference in New Issue
Block a user