Nwidart\Modules\Json::setPath PHP Метод

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

Set path.
public setPath ( mixed $path )
$path mixed
    public function setPath($path)
    {
        $this->path = (string) $path;
        return $this;
    }

Usage Example

Пример #1
0
 /** @test */
 public function it_sets_a_path()
 {
     $path = __DIR__ . '/stubs/module.json';
     $this->assertEquals($path, $this->json->getPath());
     $this->json->setPath('some/path.json');
     $this->assertEquals('some/path.json', $this->json->getPath());
 }