update()必须在实现SplSubject的类中使用。但是update()不在这个接口中。
update()是SplObserver接口中的一个方法,应该在实现SplObserver的类中定义。
update()