PHPSA\Variable::getName PHP Method

getName() public method

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

Usage Example

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