PHPSA\Variable::getName PHP 메소드

getName() 공개 메소드

public getName ( ) : string
리턴 string
    public function getName()
    {
        return $this->name;
    }

Usage Example

예제 #1
0
 public function testSimpleInstanceWithDefaultValue()
 {
     $variable = new Variable('test', 1, CompiledExpression::INTEGER);
     static::assertSame(CompiledExpression::INTEGER, $variable->getType());
     static::assertSame('test', $variable->getName());
     static::assertSame(1, $variable->getValue());
     static::assertSame(0, $variable->getGets());
     /**
      * it's one via default value is present
      */
     static::assertSame(1, $variable->getSets());
 }
All Usage Examples Of PHPSA\Variable::getName