public function parse($data)
    {
        if (isset($data['subject'])) {
            $this->replaceKeys($data['subject'], '_subject');
        }

        if (isset($data['body'])) {
            $this->replaceKeys($data['body'], '_body');
        }
    }
public function parse($data)
    {
        if (isset($data['subject'])) {
            $this->replaceKeys($data['subject'], '_subject');
        }

        if (isset($data['body'])) {
            $this->replaceKeys($data['body'], '_body');
        }
    }
public function parse ( $ data ) { if ( isset ( $ data [ 'subject' ] ) ) { $ this -> replaceKeys ( $ data [ 'subject' ] , '_subject' ) ; } if ( isset ( $ data [ 'body' ] ) ) { $ this -> replaceKeys ( $ data [ 'body' ] , '_body' ) ; } }
Replace keys to real data in subject and body.

@param array $data Array with key-value pairs.
Replace keys to real data in subject and body .