diff --git a/files/chapter15.md b/files/chapter15.md index af72a89..e96a4fc 100644 --- a/files/chapter15.md +++ b/files/chapter15.md @@ -51,7 +51,7 @@ class Department public function getName($name) { - return $this->id; + return $this->name; } } @@ -209,4 +209,4 @@ $id->getDepartment(1); 上一章:[第十四章 老板回来,我不知道 --- 观察者模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter14.md) -下一章:[第十六章 无尽加班何时休 --- 状态模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter16.md) \ No newline at end of file +下一章:[第十六章 无尽加班何时休 --- 状态模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter16.md)