src/Processor/AbstractProcessor.php 1 location
|
@@ 15-24 (lines=10) @@
|
| 12 |
|
* |
| 13 |
|
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest-processors.html |
| 14 |
|
*/ |
| 15 |
|
abstract class AbstractProcessor extends Param |
| 16 |
|
{ |
| 17 |
|
protected function _getBaseName() |
| 18 |
|
{ |
| 19 |
|
$shortName = (new \ReflectionClass($this))->getShortName(); |
| 20 |
|
$shortName = \preg_replace('/Processor$/', '', $shortName); |
| 21 |
|
|
| 22 |
|
return Util::toSnakeCase($shortName); |
| 23 |
|
} |
| 24 |
|
} |
| 25 |
|
|
src/Query/AbstractQuery.php 1 location
|
@@ 13-22 (lines=10) @@
|
| 10 |
|
* |
| 11 |
|
* @author Nicolas Ruflin <[email protected]> |
| 12 |
|
*/ |
| 13 |
|
abstract class AbstractQuery extends Param |
| 14 |
|
{ |
| 15 |
|
protected function _getBaseName() |
| 16 |
|
{ |
| 17 |
|
$shortName = (new \ReflectionClass($this))->getShortName(); |
| 18 |
|
$shortName = \preg_replace('/Query$/', '', $shortName); |
| 19 |
|
|
| 20 |
|
return Util::toSnakeCase($shortName); |
| 21 |
|
} |
| 22 |
|
} |
| 23 |
|
|