getParamName() public static method

Tries to guess the name of the param, based on its class Example: \Elastica\Filter\HasChildFilter => has_child.
public static getParamName ( $class ) : string
return string parameter name
Example #1
0
 /**
  * Param's name
  * Picks the last part of the class name and makes it snake_case
  * You can override this method if you want to change the name.
  *
  * @return string name
  */
 protected function _getBaseName()
 {
     return Util::getParamName($this);
 }
 protected function _getFilterName($filter)
 {
     return Util::getParamName($filter);
 }