tableize() public static method

Example: $class = "BigFoot"; $table = Strings::tableize($class); Result: BigFeet
public static tableize ( string $class ) : string
$class string
return string
 private function _setupTableNameReplacement()
 {
     $tableName = $this->tableInfo->tableName;
     $defaultTableName = Strings::tableize($this->className);
     $placeholderTableName = $tableName != $defaultTableName ? $tableName : '';
     $this->classStub->addTableSetupItem('table', $placeholderTableName);
 }
示例#2
0
 /**
  * @test
  */
 public function shouldTableizeEmptyString()
 {
     //given
     $class = "";
     //when
     $table = Strings::tableize($class);
     //then
     $this->assertEquals("", $table);
 }
示例#3
0
 private static function defaultTable($class)
 {
     $reflectionClass = new ReflectionClass($class);
     return Strings::tableize($reflectionClass->getShortName());
 }