Platformsh\Cli\Local\LocalApplication::getId PHP Method

getId() public method

Get a unique identifier for this app.
public getId ( ) : string
return string
    public function getId()
    {
        return $this->getName() ?: $this->getPath() ?: 'default';
    }

Usage Example

 public function testGetAppConfigNested()
 {
     $fakeAppRoot = 'tests/data/repositories/multiple/nest/nested';
     $app = new LocalApplication($fakeAppRoot);
     $config = $app->getConfig();
     $this->assertEquals(['name' => 'nested1'], $config);
     $this->assertEquals('nested1', $app->getName());
     $this->assertEquals('nested1', $app->getId());
 }
All Usage Examples Of Platformsh\Cli\Local\LocalApplication::getId