public function isReadable(int $user, int $group): bool
    {
        if ($this->user === $user) {
            $check = 0400;
        } elseif ($this->group === $group) {
            $check = 0040;
        } else {
            $check = 0004;
        }

        return (bool) ($this->permissions & $check);
    }
public function isReadable(int $user, int $group): bool
    {
        if ($this->user === $user) {
            $check = 0400;
        } elseif ($this->group === $group) {
            $check = 0040;
        } else {
            $check = 0004;
        }

        return (bool) ($this->permissions & $check);
    }
public function isReadable ( int $ user , int $ group ) : bool { if ( $ this -> user === $ user ) { $ check = 0400 ; } elseif ( $ this -> group === $ group ) { $ check = 0040 ; } else { $ check = 0004 ; } return ( bool ) ( $ this -> permissions & $ check ) ; }
checks whether content is readable

@param   int   $user   id of user to check for
@param   int   $group  id of group to check for
@return  bool
checks whether content is readable