src/Parser.php
/**
     * Recursively process the value to handle any TaggedValue objects.
     *
     * @param  mixed $value a value to process
     *
     * @return mixed the value with any TaggedValue objects having been
     *     processed and possibly replaced.
     */
Recursively process the value to handle any TaggedValue objects.
@param  mixed $value a value to process

@return mixed the value with any TaggedValue objects having been
processed and possibly replaced.
Recursively process the value to handle any TaggedValue objects . @param mixed $value a value to process @return mixed the value with any TaggedValue objects having been processed and possibly replaced .
protected function postProcess($value)
    {
        if ($value instanceof TaggedValue) {
            $value = $this->processTaggedValue($value);
        }
        if (!is_array($value)) {
            return $value;
        }
        foreach ($value as $k=>&$v) {
            $v = $this->postProcess($v);
        }
        return $value;
    }
protected function postProcess ( $ value ) { if ( $ value instanceof TaggedValue ) { $ value = $ this -> processTaggedValue ( $ value ) ; } if ( ! is_array ( $ value ) ) { return $ value ; } foreach ( $ value as $ k => & $ v ) { $ v = $ this -> postProcess ( $ v ) ; } return $ value ; }
Recursively process the value to handle any TaggedValue objects.
Recursively process the value to handle any TaggedValue objects .