protected function setAttribute(string $value, \DOMElement $node, array $classesMetadata)
    {
        if (array_key_exists($value, $classesMetadata)) {
            $node->setAttribute('service', $value);
        } elseif (class_exists($value)) {
            $node->setAttribute('class', $value);
        } else {
            $node->setAttribute('value', $value);
        }
    }
protected function setAttribute(string $value, \DOMElement $node, array $classesMetadata)
    {
        if (array_key_exists($value, $classesMetadata)) {
            $node->setAttribute('service', $value);
        } elseif (class_exists($value)) {
            $node->setAttribute('class', $value);
        } else {
            $node->setAttribute('value', $value);
        }
    }
protected function setAttribute ( string $ value , \ DOMElement $ node , array $ classesMetadata ) { if ( array_key_exists ( $ value , $ classesMetadata ) ) { $ node -> setAttribute ( 'service' , $ value ) ; } elseif ( class_exists ( $ value ) ) { $ node -> setAttribute ( 'class' , $ value ) ; } else { $ node -> setAttribute ( 'value' , $ value ) ; } }
Set XML property or method argument value.

@param string      $value
@param \DOMElement $node
@param ClassMetadata[]       $classesMetadata
Set XML property or method argument value .