Model/MetaData.php
public function setData($data)
    {
        if (is_array($data)) {
            $this->data = $data;

            return $this;
        }
        $this->data = json_decode($data, true);
        if (null === $this->data) {
            $this->data = $data;
        }

        return $this;
    }
public function setData($data)
    {
        if (is_array($data)) {
            $this->data = $data;

            return $this;
        }
        $this->data = json_decode($data, true);
        if (null === $this->data) {
            $this->data = $data;
        }

        return $this;
    }
public function setData ( $ data ) { if ( is_array ( $ data ) ) { $ this -> data = $ data ; return $ this ; } $ this -> data = json_decode ( $ data , true ) ; if ( null === $ this -> data ) { $ this -> data = $ data ; } return $ this ; }
Sets the "data" of the MetaData.

@param array|string $data

@return MetaData
Sets the data of the MetaData .