ftype&0xff) & $type; } public function whatType(): int { static $ext = ['su','mo','tu','we','th','fr','sa','req']; $x = strrchr($this->full_name,'.'); if (! $x || (strlen(substr($x,1)) != 3)) return self::IS_FILE; if (strcasecmp(substr($x,1),'pkt') === 0) return self::IS_PKT; if (strcasecmp(substr($x,1),'req') === 0) return self::IS_REQ; if (strcasecmp(substr($x,1),'tic') === 0) return self::IS_TIC; for ($i=0;$i