protected function getRealValues(array $values, $value = null)
    {
        $value = $this->getCallableValue($value);

        foreach ($values as &$val) {
            if (\is_object($val) && \is_callable($value)) {
                $val = \call_user_func($value, $val);
            }
        }

        return $values;
    }
protected function getRealValues(array $values, $value = null)
    {
        $value = $this->getCallableValue($value);

        foreach ($values as &$val) {
            if (\is_object($val) && \is_callable($value)) {
                $val = \call_user_func($value, $val);
            }
        }

        return $values;
    }
protected function getRealValues ( array $ values , $ value = null ) { $ value = $ this -> getCallableValue ( $ value ) ; foreach ( $ values as & $ val ) { if ( \ is_object ( $ val ) && \ is_callable ( $ value ) ) { $ val = \ call_user_func ( $ value , $ val ) ; } } return $ values ; }
Get the choice names of values.

@param array         $values The selected values
@param null|callable $value  The callable which generates the values
from choices

@return array
Get the choice names of values .