コード例 #1
0
 /**
  * Test to get classname from class namespace
  * */
 public function testGetClassName()
 {
     $this->assertInternalType("string", TableMapper::getClassName('Sirolad\\Potato\\User'));
 }
コード例 #2
0
ファイル: Potato.php プロジェクト: andela-sakande/potatoORM
 /**
  * @param string connection to class name
  * @return string table name of Called class
  */
 public function tableName()
 {
     return TableMapper::getClassName(get_called_class());
 }