Transformer
last analyzed

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
toXpath() 0 1 ?
1
<?php
2
/**
3
 * Interface for objects that convert a (css) selector string into an XPath expression
4
 *
5
 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
6
 * @copyright Copyright (c) 2009-2015 FluentDOM Contributors
7
 */
8
9
namespace FluentDOM\Xpath {
10
11
  /**
12
   * Interface for objects that convert a (css) selector string into an XPath expression for objects that provide an xpath expression when cast to string
13
   */
14
  interface Transformer {
15
16
    const CONTEXT_CHILDREN = 0;
17
    const CONTEXT_DOCUMENT = 1;
18
    const CONTEXT_SELF = 2;
19
20
    public function toXpath(string $selector, int $contextMode = self::CONTEXT_CHILDREN, bool $isHtml = FALSE);
21
  }
22
}