Barebone\Pair
- getName(); // get the name of the pair
- getValue(); // get the value of the pair
- setName($name); // set the name of the pair
- setValue($value);// set the value of the pair
- jsonSerialize(); // returns the pair as json string
- toArray(); // returns the pair as array
Source
<?php
$pair = new Barebone\Pair('eur', 'Europa');
Barebone\Inspector::Inspect($pair);
Result
Barebone\Pair Object
(
[name:Barebone\Pair:private] => eur
[value:Barebone\Pair:private] => Europa
)