api/MarkLogic/MLPHP/PropertiesConstraint.php
public function getAsElem($dom)
    {
        $constElem = $dom->createElement('constraint');
        $constElem->setAttribute('name', $this->name);
        $propElem = $dom->createElement('properties');
        $constElem->appendChild($propElem);
        /* <constraint name='sample-property-constraint'>
                <properties />
       </constraint> */
        return $constElem;
    }
public function getAsElem($dom)
    {
        $constElem = $dom->createElement('constraint');
        $constElem->setAttribute('name', $this->name);
        $propElem = $dom->createElement('properties');
        $constElem->appendChild($propElem);
        /* <constraint name='sample-property-constraint'>
                <properties />
       </constraint> */
        return $constElem;
    }
Get the constraint as a DOMElement object.

@param DOMDocument $dom The DOMDocument object with which to create the element.