function writable(): self {
    if (!$this->hasFlag('directory') && !$this->hasFlag('file'))
      throw new \BadMethodCallException('This assertion is not a file or directory one.');

    return $this->expect($this->target, isWritable());
  }
function writable(): self {
    if (!$this->hasFlag('directory') && !$this->hasFlag('file'))
      throw new \BadMethodCallException('This assertion is not a file or directory one.');

    return $this->expect($this->target, isWritable());
  }
function writable ( ) : self { if ( ! $ this -> hasFlag ( 'directory' ) && ! $ this -> hasFlag ( 'file' ) ) throw new \ BadMethodCallException ( 'This assertion is not a file or directory one.' ) ; return $ this -> expect ( $ this -> target , isWritable ( ) ) ; }
Reports an error if the file or directory specified by the target is not writable.
@return self This instance.
@throws \BadMethodCallException This assertion is not a file or directory one.
Reports an error if the file or directory specified by the target is not writable .