diff options
Diffstat (limited to 'src/phinde/Helper.php')
| -rw-r--r-- | src/phinde/Helper.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php index 00215fe..aeb8ba5 100644 --- a/src/phinde/Helper.php +++ b/src/phinde/Helper.php @@ -77,5 +77,14 @@ class Helper $diff = microtime(true) - static::$timer[$timer]; echo '+timer: ' . number_format($diff, 3) . 'ms ' . $timer . "\n"; } + + public static function baseDoc($url) + { + $esDoc = new \stdClass(); + $esDoc->status = new \stdClass(); + $esDoc->url = $url; + $esDoc->schemalessUrl = Helper::noSchema($url); + return $esDoc; + } } ?> |
