Kraken\Filesystem\FilesystemInterface::setPrivate PHP 메소드

setPrivate() 공개 메소드

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);
 }