neerolyte/php-lyte-xml

View on GitHub
src/DOMXPath.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Lyte\XML;
/**
 * LyteDOMXPath decorates extra behaviour on to DOMXPath, but it
 * can't easilly inherit from it.
 */
class DOMXPath extends XMLDecorator {
    public function __construct(&$arg) {
        $this->decorated = new \DOMXPath($arg->getDecorated());
    }
}