You are here

public function vfsStreamAbstractContent::chmod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php \org\bovigo\vfs\vfsStreamAbstractContent::chmod()

change file mode to given permissions

Parameters

int $permissions:

Return value

$this

Overrides vfsStreamContent::chmod

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php, line 235

Class

vfsStreamAbstractContent
Base stream contents container.

Namespace

org\bovigo\vfs

Code

public function chmod($permissions) {
  $this->permissions = $permissions;
  $this->lastAttributeModified = time();
  clearstatcache();
  return $this;
}