编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 接口 the countable interfacephp data structures the hashable interfacephp mongodb bson the mongodb bson decimal128interface interfacephp mongodb bson the mongodb bson timestampinterface interfacephp mongodb bson the mongodb bson type interfacephp mysql xdevapi schemaobject interfacephp 接口 the outeriterator interfacephp pht the threaded interfacephp 接口 the recursiveiterator interfacephp 接口 the seekableiterator interfacephp 各种类及接口 the splobserver interfacephp 各种类及接口 the splsubject interfacephp com 函数 print out a php class definition for a dispatchable interfacephp uopz 函数 implements an interface at runtimephp reflectionclass 获取接口(interface)名称php reflectionclass 接口的实现php reflectionclass 检查类是否是一个接口(interface)php spl 各种类及接口
关注编程学问公众号
编程学问网 湘ICP备20001732号