Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
XPathEvaluatorBase
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 createExpression
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 createNSResolver
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 evaluate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM\Stub;
7
8use Exception;
9use Wikimedia\IDLeDOM\Node;
10use Wikimedia\IDLeDOM\XPathExpression;
11use Wikimedia\IDLeDOM\XPathNSResolver;
12use Wikimedia\IDLeDOM\XPathResult;
13
14trait XPathEvaluatorBase {
15
16    // Underscore is used to avoid conflicts with DOM-reserved names
17    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
18    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
19
20    /**
21     * @return Exception
22     */
23    abstract protected function _unimplemented(): Exception;
24
25    // phpcs:enable
26
27    /**
28     * @param string $expression
29     * @param XPathNSResolver|callable|null $resolver
30     * @return XPathExpression
31     */
32    public function createExpression( string $expression, /* ?mixed */ $resolver = null ) {
33        throw self::_unimplemented();
34    }
35
36    /**
37     * @param Node $nodeResolver
38     * @return XPathNSResolver|callable
39     */
40    public function createNSResolver( /* Node */ $nodeResolver ) {
41        throw self::_unimplemented();
42    }
43
44    /**
45     * @param string $expression
46     * @param Node $contextNode
47     * @param XPathNSResolver|callable|null $resolver
48     * @param int $type
49     * @param XPathResult|null $result
50     * @return XPathResult
51     */
52    public function evaluate( string $expression, /* Node */ $contextNode, /* ?mixed */ $resolver = null, int $type = 0, /* ?XPathResult */ $result = null ) {
53        throw self::_unimplemented();
54    }
55
56}