DataSift\Storyplayer\ConfigLib\WrappedConfig::getData PHP Метод

getData() публичный Метод

NOTE that you should treat any data returned from here as READ-ONLY
public getData ( string $path ) : mixed
$path string the dot.notation.path to use to navigate
Результат mixed
    public function getData($path)
    {
        return $this->config->getData($path);
    }

Usage Example

Пример #1
0
 /**
  * @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::getData()
  * @expectedException DataSift\Stone\ObjectLib\E4xx_PathNotFound
  */
 public function testGetDataThrowsExceptionWhenConfigPathNotFoundInAScalar()
 {
     // ----------------------------------------------------------------
     // setup your test
     $obj = new WrappedConfig();
     $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
     // ----------------------------------------------------------------
     // perform the change
     $actual = $obj->getData("storyplayer.ipAddress.netmask");
 }