src/Common/Internal/Atom/AtomBase.php
protected function writeOptionalAttribute(
        \XMLWriter $xmlWriter,
        $attributeName,
        $attributeValue
    ) {
        Validate::notNull($xmlWriter, 'xmlWriter');
        Validate::isString($attributeName, 'attributeName');

        if (!empty($attributeValue)) {
            $xmlWriter->writeAttribute(
                $attributeName,
                $attributeValue
            );
        }
    }
protected function writeOptionalAttribute(
        \XMLWriter $xmlWriter,
        $attributeName,
        $attributeValue
    ) {
        Validate::notNull($xmlWriter, 'xmlWriter');
        Validate::isString($attributeName, 'attributeName');

        if (!empty($attributeValue)) {
            $xmlWriter->writeAttribute(
                $attributeName,
                $attributeValue
            );
        }
    }
protected function writeOptionalAttribute ( \ XMLWriter $ xmlWriter , $ attributeName , $ attributeValue ) { Validate :: notNull ( $ xmlWriter , 'xmlWriter' ) ; Validate :: isString ( $ attributeName , 'attributeName' ) ; if ( ! empty ( $ attributeValue ) ) { $ xmlWriter -> writeAttribute ( $ attributeName , $ attributeValue ) ; } }
Writes an optional attribute for ATOM.

@param \XMLWriter $xmlWriter      The XML writer
@param string     $attributeName  The name of the attribute
@param mixed      $attributeValue The value of the attribute
Writes an optional attribute for ATOM .