public function formatData()
    {
        $this->formatter->addData($this->data);

        try {
            $formatted = $this->formatter->format();
        } catch (DataException $e) {
            throw new FormattingException('The provided data has been incorrectly formatted.');
        }

        return $formatted;
    }
public function formatData()
    {
        $this->formatter->addData($this->data);

        try {
            $formatted = $this->formatter->format();
        } catch (DataException $e) {
            throw new FormattingException('The provided data has been incorrectly formatted.');
        }

        return $formatted;
    }
public function formatData ( ) { $ this -> formatter -> addData ( $ this -> data ) ; try { $ formatted = $ this -> formatter -> format ( ) ; } catch ( DataException $ e ) { throw new FormattingException ( 'The provided data has been incorrectly formatted.' ) ; } return $ formatted ; }
Calls the Formatter with the data passed into the Request

@return string
Calls the Formatter with the data passed into the Request