Example #1
0
 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;
 }
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetNotExists()
 {
     IdGeneratorContainer::get('no');
 }