src/Span.php
protected function setMetadata($metadata)
    {
        if ($metadata !== null && !($metadata instanceof Metadata)) {
            throw new \InvalidArgumentException('$metadata must be instance of Metadata');
        }

        $this->metadata = $metadata;
    }
protected function setMetadata($metadata)
    {
        if ($metadata !== null && !($metadata instanceof Metadata)) {
            throw new \InvalidArgumentException('$metadata must be instance of Metadata');
        }

        $this->metadata = $metadata;
    }
protected function setMetadata ( $ metadata ) { if ( $ metadata !== null && ! ( $ metadata instanceof Metadata ) ) { throw new \ InvalidArgumentException ( '$metadata must be instance of Metadata' ) ; } $ this -> metadata = $ metadata ; }
Valid and set metadata

@param $metadata Metadata

@throws \InvalidArgumentException
Valid and set metadata