underscore() публичный статический Метод

public static underscore ( $string ) : string
Результат string
Пример #1
0
 public function getTableName()
 {
     if (!$this->tableName) {
         $tableName = str_replace('Mapper', '', $this->getReflection()->getShortName());
         $this->tableName = StringHelper::underscore($tableName);
     }
     return $this->tableName;
 }
Пример #2
0
 public function getTableName() : string
 {
     if (!$this->tableName) {
         $namespace = explode('\\', $this->getReflection()->getNamespaceName());
         array_shift($namespace);
         $this->tableName = Nextras\Orm\StorageReflection\StringHelper::underscore(implode($namespace));
     }
     return $this->tableName ?: parent::getTableName();
 }
 public function formatStorageKey($key)
 {
     return StringHelper::underscore($key);
 }