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
)
  • Barebone\Pair

    Barebone\Pair
    • [P] $name : mixed
    • [P] $value : mixed
    • [M] __construct( $name, $value ) : void
    • [M] getName() : void
    • [M] getValue() : void
    • [M] setName( $name ) : void
    • [M] setValue( $value ) : void
    • [M] jsonSerialize() : mixed
    • [M] toArray() : void