touchKey() public method

Touch a file (change time modified)
Requires '\Webiny\Component\Storage\Driver\TouchableInterface' to be implemented by a Driver class
public touchKey ( string $key ) : mixed
$key string
return mixed
Example #1
0
 /**
  * Touch a file (change time modified)
  *
  * @return $this
  */
 public function touch()
 {
     if ($this->storage->supportsTouching()) {
         $this->storage->touchKey($this->key);
         $this->timeModified = null;
     }
     return $this;
 }