8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba56ef commit d5ba38dCopy full SHA for d5ba38d
files/chapter1.md
@@ -98,7 +98,7 @@ class OperationFactory
98
// 客户端代码
99
$operation = OperationFactory::createOperation('+');
100
$operation->setA(1);
101
-$operation->setA(2);
+$operation->seB(2);
102
echo $operation->getResult()."\n";
103
```
104
@@ -112,4 +112,4 @@ echo $operation->getResult()."\n";
112
113
> 高内聚,低耦合
114
115
-下一章:[第二章 商场促销 --- 策略模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter2.md)
+下一章:[第二章 商场促销 --- 策略模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter2.md)
0 commit comments