setProperty('report', 'true'). * * @return XdmNode */ public function getValidationReport() {} /** * Set the parameters required for XQuery Processor * * @param string $name * @param XdmValue $value * @return void */ public function setParameter($name, $value) {} /** * Set properties for Schema Validator. * * @param string $name * @param string $value * @return void */ public function setProperty($name, $value) {} /** * Clear parameter values set * * @return void */ public function clearParameters() {} /** * Clear property values set * * @return void */ public function clearProperties() {} /** * Clear any exception thrown * * @return void */ public function exceptionClear() {} /** * Get the $i'th error code if there are any errors * * @param int $i * @return string */ public function getErrorCode($i) {} /** * Get the $i'th error message if there are any errors * * @param int $i * @return string */ public function getErrorMessage($i) {} /** * Get number of error during execution of the validator * * @return int */ public function getExceptionCount() {} } /** * @link https://www.saxonica.com/saxon-c/documentation/index.html#!api/saxon_c_php_api/saxon_c_php_xdmvalue */ class XdmValue { /** * Get the first item in the sequence * * @return XdmItem */ public function getHead() {} /** * Get the n'th item in the value, counting from zero * * @param int $index * @return XdmItem */ public function itemAt($index) {} /** * Get the number of items in the sequence * * @return int */ public function size() {} /** * Add item to the sequence at the end. * * @param XdmItem $item */ public function addXdmItem($item) {} } /** * @link https://www.saxonica.com/saxon-c/documentation/index.html#!api/saxon_c_php_api/saxon_c_php_xdmitem */ class XdmItem extends XdmValue { /** * Get the string value of the item. For a node, this gets the string value of the node. For an atomic value, it has the same effect as casting the value to a string. In all cases the result is the same as applying the XPath string() function. * * @return string */ public function getStringValue() {} /** * Determine whether the item is a node value or not. * * @return bool */ public function isNode() {} /** * Determine whether the item is an atomic value or not. * * @return bool */ public function isAtomic() {} /** * Provided the item is an atomic value we return the {@link XdmAtomicValue} otherwise return null * * @return XdmAtomicValue|null */ public function getAtomicValue() {} /** * Provided the item is a node value we return the {@link XdmNode} otherwise return null * * @return XdmNode|null */ public function getNodeValue() {} } /** * @link https://www.saxonica.com/saxon-c/documentation/index.html#!api/saxon_c_php_api/saxon_c_php_xdmnode */ class XdmNode extends XdmItem { /** * Get the string value of the item. For a node, this gets the string value of the node. * * @return string */ public function getStringValue() {} /** * Get the kind of node * * @return int */ public function getNodeKind() {} /** * Get the name of the node, as a EQName * * @return string */ public function getNodeName() {} /** * Determine whether the item is an atomic value or a node. This method will return FALSE as the item is not atomic * * @return false */ public function isAtomic() {} /** * Get the count of child node at this current node * * @return int */ public function getChildCount() {} /** * Get the count of attribute nodes at this node * * @return int */ public function getAttributeCount() {} /** * Get the n'th child node at this node. If the child node selected does not exist then return null * * @param int $index * @return XdmNode|null */ public function getChildNode($index) {} /** * Get the parent of this node. If parent node does not exist then return null * * @return XdmNode|null */ public function getParent() {} /** * Get the n'th attribute node at this node. If the attribute node selected does not exist then return null * * @param int $index * @return XdmNode|null */ public function getAttributeNode($index) {} /** * Get the n'th attribute node value at this node. If the attribute node selected does not exist then return null * * @param int $index * @return string|null */ public function getAttributeValue($index) {} } /** * @link https://www.saxonica.com/saxon-c/documentation/index.html#!api/saxon_c_php_api/saxon_c_php_xdmatomicvalue */ class XdmAtomicValue extends XdmItem { /** * Get the string value of the item. For an atomic value, it has the same effect as casting the value to a string. In all cases the result is the same as applying the XPath string() function. * * @return string */ public function getStringValue() {} /** * Get the value converted to a boolean using the XPath casting rules * * @return bool */ public function getBooleanValue() {} /** * Get the value converted to a float using the XPath casting rules. If the value is a string, the XSD 1.1 rules are used, which means that the string "+INF" is recognised * * @return float */ public function getDoubleValue() {} /** * Get the value converted to an integer using the XPath casting rules * * @return int */ public function getLongValue() {} /** * Determine whether the item is an atomic value or a node. Return TRUE if the item is an atomic value * * @return true */ public function isAtomic() {} }