Pair (class)
The Pair class
Introduction
(No version information available, might only be in Git)
A pair is used by Ds\Map to pair keys with values.
Class synopsis
Ds\Pair implements JsonSerializable {
/* Methods */
}Table of Contents
- Ds\Pair::clear — Removes all values.
- Ds\Pair::__construct — Creates a new instance.
- Ds\Pair::copy — Returns a shallow copy of the pair.
- Ds\Pair::isEmpty — Returns whether the pair is empty
- Ds\Pair::jsonSerialize — Returns a representation that can be converted to JSON.
- Ds\Pair::toArray — Converts the pair to an array.
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/class.ds-pair.php