src/Workout/Dumper/GPX.php
protected function writeMetaData(\XMLWriter $xmlWriter, Workout $workout)
    {
        $xmlWriter->startElement('metadata');
        if ($workout->author() !== null) {
            $xmlWriter->startElement('author');
            $xmlWriter->writeElement('name', $workout->author()->name());
            $xmlWriter->endElement();
        }
        $xmlWriter->endElement();
    }
protected function writeMetaData(\XMLWriter $xmlWriter, Workout $workout)
    {
        $xmlWriter->startElement('metadata');
        if ($workout->author() !== null) {
            $xmlWriter->startElement('author');
            $xmlWriter->writeElement('name', $workout->author()->name());
            $xmlWriter->endElement();
        }
        $xmlWriter->endElement();
    }
protected function writeMetaData ( \ XMLWriter $ xmlWriter , Workout $ workout ) { $ xmlWriter -> startElement ( 'metadata' ) ; if ( $ workout -> author ( ) !== null ) { $ xmlWriter -> startElement ( 'author' ) ; $ xmlWriter -> writeElement ( 'name' , $ workout -> author ( ) -> name ( ) ) ; $ xmlWriter -> endElement ( ) ; } $ xmlWriter -> endElement ( ) ; }
Write the metadata in the GPX.

@param \XMLWriter $xmlWriter The XML writer.
@param Workout $workout The workout.
Write the metadata in the GPX .