getName() public method

If an information is mutually exclusive then it should use a standard name representing the category of the thing (e.g. "vcs"). This allows reports and such things to reference it reliably.
public getName ( ) : string
return string
Exemplo n.º 1
0
 public function addEnvInformation(Information $information)
 {
     $this->envInformations[$information->getName()] = $information;
 }
Exemplo n.º 2
0
 /**
  * It should retrieve its name.
  */
 public function testGetName()
 {
     $information = new Information('foo', array());
     $this->assertEquals('foo', $information->getName());
 }