org\bovigo\vfs\vfsStreamAbstractContent::isWritable PHP Метод

isWritable() публичный Метод

checks whether content is writable
public isWritable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
Результат boolean
    public function isWritable($user, $group)
    {
        if ($this->user === $user) {
            $check = 0200;
        } elseif ($this->group === $group) {
            $check = 020;
        } else {
            $check = 02;
        }
        return (bool) ($this->permissions & $check);
    }