示例#1
0
 /**
  * @return string
  */
 public function getIdentifier()
 {
     $name = $this->getName();
     $class = $this->getClass();
     if ($name) {
         return Utils::classToIdentifier($name);
     } else {
         return Utils::classToIdentifier($class);
     }
 }
示例#2
0
文件: UtilsTest.php 项目: jbboehr/zdi
 public function testClassToIdentifierWithValidIdentifier()
 {
     $this->assertSame('aValidIdentifier', Utils::classToIdentifier('aValidIdentifier'));
 }