Kraken\Filesystem\FilesystemInterface::setPrivate PHP Method

setPrivate() public method

Sets visibility of file or directory to private.
public setPrivate ( string $path = '' )
$path string
    public function setPrivate($path = '');

Usage Example

コード例 #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);
 }