public function setEnvProperty($name, $version)
    {
        if (! isset($this->data['env']) || ! is_array($this->data['env'])) {
            $this->data['env'] = [];
        }

        $this->data['env'][$name] = $version;
    }
public function setEnvProperty($name, $version)
    {
        if (! isset($this->data['env']) || ! is_array($this->data['env'])) {
            $this->data['env'] = [];
        }

        $this->data['env'][$name] = $version;
    }
public function setEnvProperty ( $ name , $ version ) { if ( ! isset ( $ this -> data [ 'env' ] ) || ! is_array ( $ this -> data [ 'env' ] ) ) { $ this -> data [ 'env' ] = [ ] ; } $ this -> data [ 'env' ] [ $ name ] = $ version ; }
Add an optional env property for SDK telemetry.

@param string $name    Property name to set, name of dependency or platform.
@param string $version Version number of dependency or platform.

@return void
Add an optional env property for SDK telemetry .