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.
2 parents 06306e0 + 167c5c5 commit 9aea560Copy full SHA for 9aea560
files/chapter1.md
@@ -66,7 +66,7 @@ class OperationDiv extends Operation
66
{
67
public function getResult()
68
69
- $this->a / $this->b;
+ return $this->a / $this->b;
70
}
71
72
files/chapter2.md
@@ -37,7 +37,7 @@ class ConcreteStrategyB extends Strategy
37
38
39
/**
40
-* 算法a
+* 算法c
41
*/
42
class ConcreteStrategyC extends Strategy
43
@@ -92,10 +92,10 @@ class Context
92
case 'a':
93
$this->strategy = new ConcreteStrategyA();
94
break;
95
- case 'a':
+ case 'b':
96
$this->strategy = new ConcreteStrategyB();
97
98
+ case 'c':
99
$this->strategy = new ConcreteStrategyC();
100
101
0 commit comments