src/Workout/TrackPoint.php
public function extension($idExtension): ExtensionInterface
    {
        if ($this->hasExtension($idExtension) !== true) {
            throw new \OutOfBoundsException(sprintf('Extension "%s" not found.', $idExtension));
        }

        return $this->extensions[$idExtension];
    }
public function extension($idExtension): ExtensionInterface
    {
        if ($this->hasExtension($idExtension) !== true) {
            throw new \OutOfBoundsException(sprintf('Extension "%s" not found.', $idExtension));
        }

        return $this->extensions[$idExtension];
    }
public function extension ( $ idExtension ) : ExtensionInterface { if ( $ this -> hasExtension ( $ idExtension ) !== true ) { throw new \ OutOfBoundsException ( sprintf ( 'Extension "%s" not found.' , $ idExtension ) ) ; } return $ this -> extensions [ $ idExtension ] ; }
Get an extension by ID.

@param string $idExtension The ID of the extension.
@return ExtensionInterface
@throws \OutOfBoundsException If the extension is not found.
Get an extension by ID .