/** * The <b>SplSubject</b> interface is used alongside * <b>SplObserver</b> to implement the Observer Design Pattern. * @link http://php.net/manual/en/class.splsubject.php */ interfaceSplSubject{
/** * Attach an SplObserver * @link http://php.net/manual/en/splsubject.attach.php * @param SplObserver $observer <p> * The <b>SplObserver</b> to attach. * </p> * @return void * @since 5.1.0 */ publicfunctionattach(SplObserver $observer);
/** * Detach an observer * @link http://php.net/manual/en/splsubject.detach.php * @param SplObserver $observer <p> * The <b>SplObserver</b> to detach. * </p> * @return void * @since 5.1.0 */ publicfunctiondetach(SplObserver $observer);
/** * The <b>SplObserver</b> interface is used alongside * <b>SplSubject</b> to implement the Observer Design Pattern. * @link http://php.net/manual/en/class.splobserver.php */ interfaceSplObserver{
/** * Receive update from subject * @link http://php.net/manual/en/splobserver.update.php * @param SplSubject $subject <p> * The <b>SplSubject</b> notifying the observer of an update. * </p> * @return void * @since 5.1.0 */ publicfunctionupdate(SplSubject $subject);
/** * The SplObjectStorage class provides a map from objects to data or, by * ignoring data, an object set. This dual purpose can be useful in many * cases involving the need to uniquely identify objects. * @link http://php.net/manual/en/class.splobjectstorage.php */ classSplObjectStorageimplementsCountable, Iterator, Traversable, Serializable, ArrayAccess{
/** * Adds an object in the storage * @link http://php.net/manual/en/splobjectstorage.attach.php * @param object $object <p> * The object to add. * </p> * @param mixed $data [optional] <p> * The data to associate with the object. * </p> * @return void * @since 5.1.0 */ publicfunctionattach($object, $data = null){}
/** * Removes an object from the storage * @link http://php.net/manual/en/splobjectstorage.detach.php * @param object $object <p> * The object to remove. * </p> * @return void * @since 5.1.0 */ publicfunctiondetach($object){}
/** * Checks if the storage contains a specific object * @link http://php.net/manual/en/splobjectstorage.contains.php * @param object $object <p> * The object to look for. * </p> * @return bool true if the object is in the storage, false otherwise. * @since 5.1.0 */ publicfunctioncontains($object){}
/** * Adds all objects from another storage * @link http://php.net/manual/en/splobjectstorage.addall.php * @param SplObjectStorage $storage <p> * The storage you want to import. * </p> * @return void * @since 5.3.0 */ publicfunctionaddAll($storage){}
/** * Removes objects contained in another storage from the current storage * @link http://php.net/manual/en/splobjectstorage.removeall.php * @param SplObjectStorage $storage <p> * The storage containing the elements to remove. * </p> * @return void * @since 5.3.0 */ publicfunctionremoveAll($storage){}
/** * Removes all objects except for those contained in another storage from the current storage * @link http://php.net/manual/en/splobjectstorage.removeallexcept.php * @param SplObjectStorage $storage <p> * The storage containing the elements to retain in the current storage. * </p> * @return void * @since 5.3.6 */ publicfunctionremoveAllExcept($storage){}
/** * Returns the data associated with the current iterator entry * @link http://php.net/manual/en/splobjectstorage.getinfo.php * @return mixed The data associated with the current iterator position. * @since 5.3.0 */ publicfunctiongetInfo(){}
/** * Sets the data associated with the current iterator entry * @link http://php.net/manual/en/splobjectstorage.setinfo.php * @param mixed $data <p> * The data to associate with the current iterator entry. * </p> * @return void * @since 5.3.0 */ publicfunctionsetInfo($data){}
/** * Returns the number of objects in the storage * @link http://php.net/manual/en/splobjectstorage.count.php * @return int The number of objects in the storage. * @since 5.1.0 */ publicfunctioncount(){}
/** * Rewind the iterator to the first storage element * @link http://php.net/manual/en/splobjectstorage.rewind.php * @return void * @since 5.1.0 */ publicfunctionrewind(){}
/** * Returns if the current iterator entry is valid * @link http://php.net/manual/en/splobjectstorage.valid.php * @return bool true if the iterator entry is valid, false otherwise. * @since 5.1.0 */ publicfunctionvalid(){}
/** * Returns the index at which the iterator currently is * @link http://php.net/manual/en/splobjectstorage.key.php * @return int The index corresponding to the position of the iterator. * @since 5.1.0 */ publicfunctionkey(){}
/** * Returns the current storage entry * @link http://php.net/manual/en/splobjectstorage.current.php * @return object The object at the current iterator position. * @since 5.1.0 */ publicfunctioncurrent(){}
/** * Move to the next entry * @link http://php.net/manual/en/splobjectstorage.next.php * @return void * @since 5.1.0 */ publicfunctionnext(){}
/** * Unserializes a storage from its string representation * @link http://php.net/manual/en/splobjectstorage.unserialize.php * @param string $serialized <p> * The serialized representation of a storage. * </p> * @return void * @since 5.2.2 */ publicfunctionunserialize($serialized){}
/** * Serializes the storage * @link http://php.net/manual/en/splobjectstorage.serialize.php * @return string A string representing the storage. * @since 5.2.2 */ publicfunctionserialize(){}
/** * Checks whether an object exists in the storage * @link http://php.net/manual/en/splobjectstorage.offsetexists.php * @param object $object <p> * The object to look for. * </p> * @return bool true if the object exists in the storage, * and false otherwise. * @since 5.3.0 */ publicfunctionoffsetExists($object){}
/** * Associates data to an object in the storage * @link http://php.net/manual/en/splobjectstorage.offsetset.php * @param object $object <p> * The object to associate data with. * </p> * @param mixed $data [optional] <p> * The data to associate with the object. * </p> * @return void * @since 5.3.0 */ publicfunctionoffsetSet($object, $data = null){}
/** * Removes an object from the storage * @link http://php.net/manual/en/splobjectstorage.offsetunset.php * @param object $object <p> * The object to remove. * </p> * @return void * @since 5.3.0 */ publicfunctionoffsetUnset($object){}
/** * Returns the data associated with an <type>object</type> * @link http://php.net/manual/en/splobjectstorage.offsetget.php * @param object $object <p> * The object to look for. * </p> * @return mixed The data previously associated with the object in the storage. * @since 5.3.0 */ publicfunctionoffsetGet($object){}
/** * Calculate a unique identifier for the contained objects * @link http://php.net/manual/en/splobjectstorage.gethash.php * @param $object <p> * object whose identifier is to be calculated. * @return string A string with the calculated identifier. * @since 5.4.0 */ publicfunctiongetHash($object){}