getName() public method

public getName ( ) : string
return string
Example #1
0
 public function testReadAccessorsReturnPropertiesValues()
 {
     $name = 'setUsername';
     $arguments = [new \stdClass()];
     $value = new FunctionCallValue($name, $arguments);
     $this->assertEquals($name, $value->getName());
     $this->assertEquals($arguments, $value->getArguments());
     $this->assertEquals([$name, $arguments], $value->getValue());
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function __toString() : string
 {
     return sprintf('%s->%s(%s)', $this->reference, $this->function->getName(), [] === $this->function->getArguments() ? '' : var_export($this->function->getArguments(), true));
 }