Example #1
0
 /**
  * @param string|callable|FluentDOM\Xpath\Transformer $transformer
  */
 public static function registerXpathTransformer($transformer, $reset = FALSE)
 {
     if ($reset) {
         self::$_xpathTransformers = [];
     }
     array_unshift(self::$_xpathTransformers, $transformer);
 }