public function readFromArray(array $data) : array
    {
        foreach($data as $key => $value)
        {
            if (is_string($value)){
                $value = $this->macro_processor->process($value);
                $data[$key] = $value;
            }
            else if(is_array($value)){
                $data[$key] = $this->readFromArray($value);
            }
        }
        return $data;
    }
public function readFromArray(array $data) : array
    {
        foreach($data as $key => $value)
        {
            if (is_string($value)){
                $value = $this->macro_processor->process($value);
                $data[$key] = $value;
            }
            else if(is_array($value)){
                $data[$key] = $this->readFromArray($value);
            }
        }
        return $data;
    }
public function readFromArray ( array $ data ) : array { foreach ( $ data as $ key => $ value ) { if ( is_string ( $ value ) ) { $ value = $ this -> macro_processor -> process ( $ value ) ; $ data [ $ key ] = $ value ; } else if ( is_array ( $ value ) ) { $ data [ $ key ] = $ this -> readFromArray ( $ value ) ; } } return $ data ; }
Read from array

@param array $data

@return array
Read from array