src/SelectionControls/SelectionControl.php
protected final function makeItem($value, $label, $data = [])
    {
        $item = new \stdClass();
        $item->value = $value;
        $item->label = $label;
        $item->data = $data;

        return $item;
    }
protected final function makeItem($value, $label, $data = [])
    {
        $item = new \stdClass();
        $item->value = $value;
        $item->label = $label;
        $item->data = $data;

        return $item;
    }
protected final function makeItem ( $ value , $ label , $ data = [ ] ) { $ item = new \ stdClass ( ) ; $ item -> value = $ value ; $ item -> label = $ label ; $ item -> data = $ data ; return $ item ; }
Makes a stdClass to represent an item.

This will make a standard object with the following properties:

Value: The value of the item
Label: A text display value for the item
Data: Any other associated item data

Note that these properties are UpperCamelCase as these objects are often converted directly into
Javascript objects and that best matches our current javascript styles.

@param $value
@param $label
@param $data
@return \stdClass
Makes a stdClass to represent an item .