コード例 #1
0
ファイル: Mongator.php プロジェクト: mongator/mongator
 public function MongatorIdGeneratorToPHP($configClass, $id, $indent = 8)
 {
     $idGenerator = IdGeneratorContainer::get($configClass['idGenerator']['name']);
     $code = $idGenerator->getToPHPCode();
     $code = str_replace('%id%', $id, $code);
     $code = static::indentCode($code, $indent);
     return $code;
 }
コード例 #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetNotExists()
 {
     IdGeneratorContainer::get('no');
 }