编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « ArrayObject::unserialize
  • SplObserver::update »
  • PHP Manual
  • 各种类及接口
  • The SplObserver interface

The SplObserver interface

(PHP 5 >= 5.1.0, PHP 7)

简介

The SplObserver interface is used alongside SplSubject to implement the Observer Design Pattern.

接口摘要

SplObserver {
/* 方法 */
abstract public update ( SplSubject $subject ) : void
}

Table of Contents

  • SplObserver::update — Receive update from subject
相关文章
php 各种类及接口 the arrayobject classphp commonmark the commonmark interfaces ivisitable interfacephp commonmark the commonmark interfaces ivisitor interfacephp 接口 the countable interfacephp data structures the hashable interfacephp mongodb bson the mongodb bson type interfacephp mysql xdevapi crudoperationbindable interfacephp mysql xdevapi schemaobject interfacephp 接口 the outeriterator interfacephp 接口 the recursiveiterator interfacephp 反射 reflector 接口php 接口 the seekableiterator interfacephp 各种类及接口 the splobserver interfacephp 各种类及接口 the splsubject interfacephp 类/对象 函数 返回一个数组包含所有已声明的接口php 范例 简单接口php reflectionclass 获取接口(interface)名称php reflectionclass 检查类是否是一个接口(interface)php 语言参考 预定义接口php spl 各种类及接口
关注编程学问公众号
编程学问网 湘ICP备20001732号