mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 02:30:20 +02:00
@@ -46,7 +46,7 @@ Usage
|
|||||||
.. code:: php
|
.. code:: php
|
||||||
|
|
||||||
$factory = new SimpleFactory();
|
$factory = new SimpleFactory();
|
||||||
$bicycle = $factory->createVehicle('bicycle');
|
$bicycle = $factory->createBicycle();
|
||||||
$bicycle->driveTo('Paris');
|
$bicycle->driveTo('Paris');
|
||||||
|
|
||||||
Test
|
Test
|
||||||
|
Reference in New Issue
Block a user