src/Workout/Dumper/TCX.php
protected function writeExtensions(\XMLWriter $xmlWriter, array $extensions)
    {
        foreach ($extensions as $extension) {
            switch ($extension::ID()) {
                case HR::ID():
                    $xmlWriter->startElement('HeartRateBpm');
                    $xmlWriter->writeElement('Value', (string)$extension->value());
                    $xmlWriter->endElement();
                    break;
            }
        }
    }
protected function writeExtensions(\XMLWriter $xmlWriter, array $extensions)
    {
        foreach ($extensions as $extension) {
            switch ($extension::ID()) {
                case HR::ID():
                    $xmlWriter->startElement('HeartRateBpm');
                    $xmlWriter->writeElement('Value', (string)$extension->value());
                    $xmlWriter->endElement();
                    break;
            }
        }
    }
protected function writeExtensions ( \ XMLWriter $ xmlWriter , array $ extensions ) { foreach ( $ extensions as $ extension ) { switch ( $ extension :: ID ( ) ) { case HR :: ID ( ) : $ xmlWriter -> startElement ( 'HeartRateBpm' ) ; $ xmlWriter -> writeElement ( 'Value' , ( string ) $ extension -> value ( ) ) ; $ xmlWriter -> endElement ( ) ; break ; } } }
Write the extensions into the TCX.

@param \XMLWriter $xmlWriter The XMLWriter.
@param ExtensionInterface[] $extensions The extensions to write.
Write the extensions into the TCX .