public function setMetadataAttribute(string $name, $value)
    {
        if (array_key_exists($name, $this->metadata)) {
            throw new MetadataAttributeOverrideException($this, $name);
        }

        $this->metadata[$name] = $value;
    }
public function setMetadataAttribute(string $name, $value)
    {
        if (array_key_exists($name, $this->metadata)) {
            throw new MetadataAttributeOverrideException($this, $name);
        }

        $this->metadata[$name] = $value;
    }
public function setMetadataAttribute ( string $ name , $ value ) { if ( array_key_exists ( $ name , $ this -> metadata ) ) { throw new MetadataAttributeOverrideException ( $ this , $ name ) ; } $ this -> metadata [ $ name ] = $ value ; }
Set attribute of metadata

@param string $name
@param $value
Set attribute of metadata