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

Sets visibility of file or directory to private.
public setPrivate ( string $path = '' )
$path string
Пример #1
0
 /**
  *
  */
 public function testApiSetPrivate_ThrowsException_WhenModelThrows()
 {
     $this->setExpectedException(WriteException::class);
     $path = 'path';
     $this->expect('setVisibility', [$path, 'private'])->willThrow(new Exception());
     $this->fs->setPrivate($path);
 }