mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-27 18:20:22 +02:00
@@ -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