getName() public method

public getName ( ) : string
return string
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());
 }
Example #2
0
 /**
  * @param Variable $variable
  */
 public function add(Variable $variable)
 {
     $this->variables[$variable->getName()] = $variable;
 }
Example #3
0
 /**
  * @param Variable $variable
  * @return bool
  */
 public function addVariable(Variable $variable)
 {
     $this->symbols[$variable->getName()] = $variable;
     return true;
 }