A simple key / value pair object representation.
- Class name: Pair
- Namespace: PHPCollections\Collections
private mixed $key
The key for the Pair object.
- Visibility: private
private mixed $value
The value for the Pair object.
- Visibility: private
void PHPCollections\Collections\Pair::__construct(mixed $key, mixed $value)
Initializes class properties.
- Visibility: public
- $key mixed
- $value mixed
mixed PHPCollections\Collections\Pair::__get(string $name)
Allows access to the key property by its value.
- Visibility: public
- $name string
mixed PHPCollections\Collections\Pair::getKey()
Returns the key property.
- Visibility: public
mixed PHPCollections\Collections\Pair::getValue()
Returns the value property.
- Visibility: public
void PHPCollections\Collections\Pair::setValue(mixed $value)
Sets the value of the value property.
- Visibility: public
- $value mixed