File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1414,16 +1414,16 @@ And then it can be used as
1414
1414
``` php
1415
1415
$stationList = new StationList();
1416
1416
1417
- $stationList->addStation(new Station (89));
1418
- $stationList->addStation(new Station (101));
1419
- $stationList->addStation(new Station (102));
1420
- $stationList->addStation(new Station (103.2));
1417
+ $stationList->addStation(new RadioStation (89));
1418
+ $stationList->addStation(new RadioStation (101));
1419
+ $stationList->addStation(new RadioStation (102));
1420
+ $stationList->addStation(new RadioStation (103.2));
1421
1421
1422
1422
foreach($stationList as $station) {
1423
1423
echo $station->getFrequency() . PHP_EOL;
1424
1424
}
1425
1425
1426
- $stationList->removeStation(new Station (89)); // Will remove station 89
1426
+ $stationList->removeStation(new RadioStation (89)); // Will remove station 89
1427
1427
```
1428
1428
1429
1429
👽 Mediator
You can’t perform that action at this time.
0 commit comments