public function write(Payload $payload)
    {
        $data   = $payload->getData();
        $data   = $this->transform($data);
        $writer = $this->getWriter($payload->getContentType(), $payload->getRwType(), $payload->getRwSupported());

        return $writer->write($data);
    }
public function write(Payload $payload)
    {
        $data   = $payload->getData();
        $data   = $this->transform($data);
        $writer = $this->getWriter($payload->getContentType(), $payload->getRwType(), $payload->getRwSupported());

        return $writer->write($data);
    }
public function write ( Payload $ payload ) { $ data = $ payload -> getData ( ) ; $ data = $ this -> transform ( $ data ) ; $ writer = $ this -> getWriter ( $ payload -> getContentType ( ) , $ payload -> getRwType ( ) , $ payload -> getRwSupported ( ) ) ; return $ writer -> write ( $ data ) ; }
Writes the payload with a fitting writer and returns the result as
string. The writer depends on the content type of the payload or on the
writer type if explicit specified

@param \PSX\Data\Payload $payload
@return string
@throws \PSX\Data\InvalidDataException
@throws \PSX\Http\Exception\NotAcceptableException
Writes the payload with a fitting writer and returns the result as string . The writer depends on the content type of the payload or on the writer type if explicit specified