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

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

remove data using a dot.notation.path
public unsetData ( string $path ) : void
$path string the dot.notation.path to use to navigate
Результат void
    public function unsetData($path)
    {
        return $this->config->unsetData($path);
    }

Usage Example

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