org\bovigo\vfs\vfsStreamAbstractContent::isExecutable PHP Method

isExecutable() public method

checks whether content is executable
public isExecutable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
return boolean
    public function isExecutable($user, $group)
    {
        if ($this->user === $user) {
            $check = 0100;
        } elseif ($this->group === $group) {
            $check = 010;
        } else {
            $check = 01;
        }
        return (bool) ($this->permissions & $check);
    }